Linux Part 1 v7.0 (LX0-101)

Page:    1 / 8   
Total 119 questions

Which of the following files should be edited to select the network locations from which
Debian installation package files are loaded?

  • A. /etc/dpkg/dpkg.cfg
  • B. /etc/apt/apt.conf
  • C. /etc/apt/apt.conf.d
  • D. /etc/apt/sources.list
  • E. /etc/dpkg/dselect.cfg


Answer : D

Bob accidentally created the subdirectory \bobsdir in his home directory. He tried to remove the subdirectory with the command rmdir \bobsfile only to receive the error, "No such file or directory." . Which of the following commands will remove the directory?

  • A. rmdir '~bob/\bobsdir'
  • B. rmdir "~bob/\bobsdir"
  • C. rmdir ~bob/'bobsdir'
  • D. rmdir ~bob/\bobsdir
  • E. rmdir ~bob/\\bobsdir


Answer : E

What option, when passed to the yum command, will update the entire system? (Specify
ONLY the option name with no additional parameters).



Answer : UPDATE

The message "Hard Disk Error" is displayed on the screen during Stage 1 of the GRUB boot process. Which of the following does this indicate?

  • A. The kernel was unable to execute /bin/init
  • B. The next Stage cannot be read from the hard disk because GRUB was unable to determine the size and geometry of the disk
  • C. One or more of the filesystems on the hard disk has errors and a filesystem check should be run
  • D. The BIOS was unable to read the necessary data from the Master Boot Record to begin the boot process


Answer : B

Which of the following commands will uninstall a package but leave its configuration files in case a package is re-installed?

  • A. None, no command will do this.
  • B. dpkg -s pkgname
  • C. dpkg -L pkgname
  • D. dpkg -P pkgname
  • E. dpkg -r pkgname


Answer : E

In GRUB's configuration file an administrator finds the following line: root (hd1,4) Which of the following is the corresponding device name on a Linux system?

  • A. /dev/hda4
  • B. /dev/hda5
  • C. /dev/hdb4
  • D. /dev/hdb5


Answer : D

Which of the following sed commands will replace all instances of the string foo with the string foobar changing the file file1.txt in place?

  • A. sed 's/foo/foobar/g' file1.txt
  • B. sed 's/foo/foobar/g' file1.txt > file1.txt
  • C. sed 's/foo/foobar/g' file1.txt | file1.txt
  • D. sed -i 's/foo/foobar/g' file1.txt
  • E. sed -i 's/foo/foobar/g' file1.txt > file1.txt


Answer : D

Select the line that BEST represents what permissions the /etc/passwd file should have.

  • A. -rw------- 1 root root 531 Jun 5 22:45 /etc/passwd
  • B. -rw-r--r-- 1 root root 531 Jun 5 22:45 /etc/passwd
  • C. -rw-r--r-- 1 1 1 531 Jun 5 22:45 /etc/passwd
  • D. All answers listed are not correct.
  • E. All answers listed are correct.


Answer : B

The system is having trouble and the engineer wants to bypass the usual /sbin/init start up and run /bin/sh. Which of the following is the usual way to pass this change to the kernel from the boot loader?

  • A. Start in runlevel 1.
  • B. Pass init=/bin/sh on the kernel parameter line.
  • C. Pass /bin/sh on the kernel parameter line.
  • D. Pass start=/bin/sh on the kernel parameter line.


Answer : B

To allow a regular user account to mount and unmount a filesystem (for instance, a cdrom or floppy), which of the following options will need to be added to the corresponding line in
/etc/fstab?

  • A. nouidchk
  • B. alluser
  • C. user
  • D. auto


Answer : C

What umask value will result in the default access permissions of 600 (rw-------) for files and 700 (rwx------) for directories? (Provide only the numerical umask value).



Answer : 0077,077

Which of the following commands will print the inode usage on each mounted filesystem?

  • A. du -i
  • B. df -i
  • C. lsfs -i
  • D. printfs -i


Answer : B

Which of the following commands is used to dump files in octal format?

  • A. od
  • B. octdump
  • C. dumpoct
  • D. cat -o


Answer : A

Which of the following utilities would an administrator use to change how often a filesystem check was performed over an EXT2 filesystem (without losing any data stored on that filesystem)?

  • A. mod2fs
  • B. fsck
  • C. tune2fs
  • D. mke2fs
  • E. fixe2fs


Answer : C

Which of the following commands can be used to instruct the init process to switch runlevels? (Select TWO).

  • A. telinit
  • B. initctl
  • C. init
  • D. reinit
  • E. runlevel


Answer : A,C

Page:    1 / 8   
Total 119 questions