ccpq/data/lpic1_book_101-500.csv

2130 lines
64 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

1. Which of the following commands is used to view kernel-related udev events in real time?
A. udevls all
B. lsudev -f
C. udevmon -a
D. udevadm monitor
2. Which command enables you to view the current interrupt request (IRQ) assignments?
A. view /proc/irq
B. cat /proc/interrupts
C. cat /dev/irq
D. less /dev/irq
3. Configuration of udev devices is done by working with files in which directory?
A. /udev/devices
B. /devices/
C. /udev/config
D. /etc/udev
4. Which command is used to automatically load a module and its dependencies?
A. modprobe
B. lsmod
C. insmod
D. rmmod
5. Which command is used to obtain a list of USB devices?
A. usb-list
B. lsusb
C. ls-usb
D. ls --usb
6. When working with hotplug devices, you need to gather more information about them through udevadm. Which udevadm command enables you to query the udev database for information on a device?
A. query
B. info
C. getinfo
D. devinfo
7. Which command can be used to view the kernel ring buffer in order to troubleshoot the boot process?
A. lsboot
B. boot-log
C. krblog
D. dmesg
8. During the initialization process for a Linux system using SysV init, which runlevel corresponds to single-user mode?
A. Runlevel 5
B. Runlevel SU
C. Runlevel 1
D. Runlevel 6
9. On a system using SysV init, in which directory are the startup and shutdown scripts for services stored?
A. /etc/init-d
B. /etc/init
C. /etc/sysV
D. /etc/init.d
10. Which command can be used to reboot a system?
A. init 6
B. shutdown -h -t now
C. init 1
D. refresh-system
11. When using an SysV init-based system, which command would you use if you make changes to the /etc/inittab file and want those changes to be reloaded without a reboot?
A. init-refresh
B. init 6
C. telinit
D. reload-inittab
12. Which command displays the current runlevel for a system?
A. show-level
B. init --level
C. sudo init
D. runlevel
13. Within which folder are systemd unit configuration files stored?
A. /etc/system.conf.d
B. /lib/system.conf.d
C. /lib/systemd/system
D. /etc/sysconfd
14. Which command is used with systemd in order to list the available service units?
A. systemd list-units
B. systemctl list-units
C. systemd unit-list
D. systemctl show-units
15. Which option to lspci is used to display both numeric codes and device names?
A. -numdev
B. -n
C. -nn
D. -devnum
16. Which command can be used to obtain a list of currently loaded kernel modules?
A. insmod
B. modlist
C. ls --modules
D. lsmod
17. Which option to the modprobe command shows the dependencies for a given module?
A. --show-options
B. --list-deps
C. --show-depends
D. --list-all
18. Which command can you use to send a message to all users who are currently logged into a system?
A. cat
B. wall
C. tee
D. ssh
19. Which of the following is a good first troubleshooting step when a hard disk is not detected by the Linux kernel?
A. Unplug the disk.
B. Check the system BIOS.
C. Restart the web server service.
D. Run the disk-detect command.
20. Within which directory is information about USB devices stored?
A. /etc/usbdevices
B. /var/usb
C. /lib/sys/usb
D. /sys/bus/usb/devices
21. If the kernel ring buffer has been overwritten, within which file can you look to find boot messages?
A. /var/log/bootmessages
B. /var/log/mail.info
C. /var/adm/log/boot.info
D. /var/log/dmesg
22. Which command and option can be used to determine whether a given service is currently loaded?
A. systemctl --ls
B. telinit
C. systemctl status
D. sysctl -a
23. Which command on a systemd-controlled system would place the system into single-user mode?
A. systemctl one
B. systemctl isolate rescue.target
C. systemctl single-user
D. systemctl runlevel one
24. Which command on a system controlled by Upstart will reload the configuration files?
A. initctl reload
B. systemd reload
C. upstart --reload
D. ups -reload
25. When working with a SysV system, which option to chkconfig will display all services and their runlevels?
A. --reload
B. --list
C. --all
D. --ls
26. A drive connected to USB is considered which type of device?
A. Medium
B. Coldplug
C. Hotplug
D. Sideplug
27. The system is using a temporary flash USB disk for data mounted at /dev/sda1. You need to remove the disk. Which of the following commands will enable the disk to be safely removed from the system?
A. usbstop /dev/sda
B. umount /dev/sda1
C. unmount /dev/sda1
D. dev-eject /dev/sda1
28. You have connected a USB disk to the system and need to find out its connection point within the system. Which of the following is the best method for accomplishing this task?
A. Rebooting the system
B. Viewing the contents of /var/log/usb.log
C. Connecting the drive to a USB port that you know the number of
D. Running dmesg and looking for the disk
29. Which of the following commands will initiate an immediate shutdown of the system?
A. shutdown -c
B. halt
C. systemd stop
D. stop-system
30. Which option within a systemd service file indicates the program to execute?
A. StartProgram
B. ShortCut
C. ExecStart
D. Startup
31. Which command will display the default target on a computer running systemd?
A. systemctl defaults
B. update-rc.d defaults
C. systemctl runlevel
D. systemctl get-default
32. Which option to the systemctl command will change a service so that it runs on the next boot of the system?
A. enable
B. startonboot
C. loadonboot
D. start
33. Which of the following best describes the /proc filesystem?
A. /proc contains information about files to be processed.
B. /proc contains configuration files for processes.
C. /proc contains information on currently running processes, including the kernel.
D. /proc contains variable data such as mail and web files.
34. Which command will retrieve information about the USB connections on a computer in a tree-like format?
A. lsusb -tree
B. lsusb --tree
C. lsusb -t
D. usblist --tree
35. What is one reason why a device driver does not appear in the output of lsmod, even though the device is loaded and working properly?
A. The use of systemd means that drivers are not required for most devices.
B. The use of initramfs means that support is enabled by default.
C. The system does not need a driver for the device.
D. Support for the device has been compiled directly into the kernel.
36. Which option to rmmod will cause the module to wait until its no longer in use to unload the module?
A. -test
B. -f
C. -w
D. -unload
37. You are using a storage area network (SAN) that keeps causing errors on your Linux system due to an improper kernel module created by the SAN vendor. When the SAN sends updates, it causes the filesystem to be mounted as read-only. Which command and option can you use to change the behavior of the filesystem to account for the SAN bug?
A. mount --continue
B. tune2fs -e continue
C. mkfs --no-remount
D. mount -o remount
38. Within which directory are rules related to udev stored?
A. /etc/udev.conf
B. /etc/udev.conf.d
C. /etc/udev/rules.d
D. /etc/udev.d
39. Which option to lspci displays the kernel driver in use for the given Peripheral Component Interconnect (PCI) device?
A. -t
B. -k
C. -n
D. -a
40. Within which of the following directories will you find blacklist information for modules loaded with modprobe?
A. /etc/blacklist
B. /etc/modprobe.d
C. /etc/blacklist.mod
D. /etc/modprobe
41. When working with a CentOS 6 system, which command is used to create the initial RAM disk?
A. mkinit
B. dracut
C. mkraminit
D. mkinitfs
42. Within which file will you find a list of the currently available kernel symbols?
A. /proc/kernelsyms
B. /etc/kernel.conf
C. /etc/lsyms
D. /proc/kallsyms
43. Which of the following commands can be used to show the various information related to a currently loaded module, including core size and settings for options?
A. systool -v -m <module>
B. modinfo -r <module>
C. lsmod <module>
D. infmod <module>
44. Which directory contains various elements and configuration information about the kernel such as the release number, domain name, location of modprobe, and other settings?
A. /proc/sys/kmod
B. /proc/sys/kernel
C. /proc/kernel
D. /proc/kernel/sys
45. Within which directory should systemd unit files that you create be stored?
A. /etc/system
B. /etc/systemd/system
C. /usr/share/systemd
D. /usr/share/system
46. Which of the following commands should you execute after making changes to systemd service configurations in order for those changes to take effect?
A. systemd reload
B. reboot
C. systemctl daemon-reload
D. systemctl reboot
47. Which of the following files contains the runlevels for the system along with a reference to the corresponding rc file?
A. /etc/runlevels
B. /etc/inittab
C. /etc/rc
D. /etc/runlevel
48. Which boot loader can be used for File Allocation Table (FAT) filesystems and might be used for a rescue disk?
A. SYSBOOT
B. SYSLINUX
C. TIELINUX
D. FATLINUX
49. Which of the following is used to provide an early filesystem-based loading process for key drivers needed to continue the boot process?
A. bootrd
B. driverload
C. initrd
D. initdrv
50. When booting a system you receive an error similar to "No init found" and are then placed at an initramfs prompt. You need to check the hard drive for errors. Which of the following commands performs an error check on a hard drive partition in Linux?
A. defrag
B. fsck
C. checkfs
D. chkfs
51. Which of the following commands places the system in single-user mode?
A. tellinit 1
B. chginit 1
C. telinet 1
D. telinit 1
52. Which of the following commands changes the boot order for the next boot?
A. efibootmgr -c
B. efibootmgr -b -B
C. efibootmgr -o
D. efibootmgr -n
53. Which boot loader can be used with ISO9660 CD-ROMS?
A. ISOLINUX
B. EFIBOOT
C. ISOFS
D. BOOTISO
54. Within which directory are systemd user unit files placed by installed packages?
A. /usr/lib/systemd/user
B. /usr/lib/systemd/system
C. /usr/systemd
D. /usr/system
55. When using Unified Extensible Firmware Interface (UEFI), which of the following files can be used as a boot loader?
A. shim.uefi
B. shim.efi
C. shim.fx
D. efi.shim
56. Which directory on a SysV init-based system contains scripts that are used for starting and stopping services?
A. /etc/rc.int
B. /etc/boot
C. /etc/bootscripts
D. /etc/init.d
57. Which of the following commands is used to find overriding configuration files on a systemd-based system?
A. diff
B. systemctl -diff
C. systemd-delta
D. systemctl configoverride
58. Which of the following commands on a Red Hat system lists all of the SysV services set to be executed on boot along with their setting for each runlevel?
A. rlevel
B. chkconfig --list
C. bootldr --list
D. init --bootlist
59. Which of the following commands, executed from within the UEFI shell, controls the boot configuration?
A. bootcfg
B. bcfg
C. grub-install
D. grcfg
60. Which file must exist within /tftpboot on the Trivial File Transfer Protocol (TFTP) server for a system that will use PXELINUX for its boot loader?
A. pxelinux.tftp
B. pxelinux.boot
C. pxelinux.conf
D. pxelinux.0
61. Which utility can you use on a Debian or Ubuntu system to manage SysV init scripts, such as setting them to run on boot?
A. bootorder
B. bootloader
C. configchk
D. update-rc.d
62. Which key, pressed during the operating system selection menu, is used to enable editing of the parameters related to boot with GRUB?
A. v
B. e
C. r
D. y
63. Which systemctl subcommand is used to switch runlevels?
A. switch
B. move
C. runlevel
D. isolate
64. When examining the /etc/inittab file, which option signifies the default runlevel to which the system will boot?
A. default
B. defaultboot
C. initdefault
D. defaultlvl
65. Which of the following is used instead of initrd to provide an early filesystem for essential drivers?
A. initnext
B. initramfs
C. initialize
D. initfs
66. Which of the following commands sets the default systemd target to multi-user?
A. systemctl set-default multi-user.target
B. systemd set-default multi-user.target
C. systemctl set-def muser.target
D. systemd set-def muser.target
67. When using a shim for booting a UEFI-based system, which of the following files is loaded after shim.efi?
A. grubx64.cfg
B. grub.conf
C. grubx64.efi
D. efi.boot
68. Within which hierarchy are files from /etc/init.d linked so that the files are executed during the various runlevels of a SysV system?
A. /etc/rc.S
B. /etc/rc
C. /etc/boot/rc
D. /etc/rc.d
69. What is the name of the unit to which a systemd system is booted in order to start other levels?
A. default.target
B. init.target
C. initial.target
D. load.target
70. When viewing information in /dev/disk/by-path using the command ls -l, which of the following filenames represents a logical unit number (LUN) from Fibre Channel?
A. /dev/fc0
B. pci-0000:1a:00.0-fc-0x500601653ee0025f:0x0000000000000000
C. pci-0000:1a:00.0-scsi-0x500601653ee0025f:0x0000000000000000
D. /dev/fibre0
71. You have purchased new solid-state drive (SSD) hardware that uses the NVMe (Non-Volatile Memory Express) protocol but cannot find the disks in the normal /dev/sd* location in which you have traditionally found such storage. In which location should you look for these drives?
A. /dev/nd*
B. /dev/nvme*
C. /dev/nv*
D. /dev/nvme/*
72. Which file contains information about the current md Redundant Array of Inexpensive Disks (RAID) configuration such as the personalities?
A. /proc/raidinfo
B. /proc/rhyinfo
C. /proc/mdraid
D. /proc/mdstat
73. Which of the following directory hierarchies contains information such as the World Wide Name (WWN) for Fibre Channel?
A. /sys/class/wwn
B. /sys/class/fc_host
C. /sys/class/fclist
D. /sys/class/fc/wwn
74. Information about logical volumes can be found in which of the following directories?
A. /dev/lvinfo
B. /dev/map
C. /dev/mapper
D. /dev/lvmap
75. Which of the following commands will examine the PCI subsystem for NVMe-based devices?
A. psnvme
B. lsnvme
C. lspci | grep scsi
D. lspci | grep -i nvme
76. Which of the following devices is the location of the first Small Computer System Interface (SCSI) tape device detected at boot?
A. /dev/st1
B. /dev/sd0
C. /dev/sd1
D. /dev/st0
77. Which of the following files should be used to display a message to users prior to logging in locally?
A. /etc/loginmesg
B. /etc/logmessage.txt
C. /etc/issue
D. /etc/banner
78. Which file contains a message that is displayed after a successful login?
A. /etc/loginbanner
B. /etc/issue
C. /etc/motd
D. /etc/message
79. Which of the following files can be used to provide a message to users logging in remotely with a protocol such as telnet?
A. /etc/telnet.msg
B. /etc/issue.net
C. /etc/login.msg
D. /etc/telnet.login
80. Which of the following commands turns off the computer, including removing power, if possible?
A. systemctl halt
B. systemctl reboot
C. systemctl stop
D. systemctl poweroff
81. Which of the following shutdown commands reboots the system in 15 minutes?
A. shutdown -r +15
B. shutdown +15
C. shutdown -15
D. shutdown -r 00:15
82. When terminating a process on a SysV init-based system, which command can be used to stop the process?
A. service
B. sysv
C. syscl
D. servc
83. Which of the following commands show the boot messages captured by systemd?
A. journalctl -b
B. systemctl -b
C. journalctl -bm
D. journalctl -l
84. Which option to the shutdown command halts or stops the system?
A. -h
B. -s
C. -f
D. -t
85. Which signal number is used as SIGKILL when used with the kill command?
A. 1
B. 4
C. 9
D. 11
86. Which directory contains rc-related startup scripts on a legacy Debian system?
A. /etc/init
B. /etc/inittab
C. /etc/init.d
D. /etc/rc.init
87. When attempting to enable an integrated peripheral on a basic input/output system (BIOS) system, what should be done to determine whether the peripheral has been enabled within the BIOS?
A. Examine boot messages to determine if the kernel has detected the peripheral.
B. Examine /var/log/auth.log for detection of the peripheral.
C. Reboot the system to determine if the device works.
D. Enable the peripheral by removing it from the blacklisted modules.
88. Which option to the wall command suppresses the "Broadcast message" banner that normally displays?
A. -b
B. -a
C. -n
D. -d
Chapter Topic 102: Linux
1. A Serial Advanced Technology Attachment (SATA) disk will use which of the following identifiers?
A. /dev/hdX
B. /dev/sataX
C. /dev/sdX
D. /disk/sataX
2. Which option given at boot time within the GRUB configuration will boot the system into single-user mode?
A. single-user
B. su
C. single
D. root
3. During boot of a system with GRUB, which key can be pressed to display the GRUB menu?
A. Shift
B. E
C. V
D. H
4. When booting, which option can be added to a GRUB configuration line to set or change the root partition at boot time to /dev/sda2?
A. rootpartition={hd0,2}
B. root=/dev/sda2
C. root={hd0,3}
D. rootpartition=/dev/sda2
5. Which key combination will enable you to edit the kernel options and then boot when using GRUB Legacy?
A. ESC for editing and then Return to boot
B. v for editing and then Return to boot
C. e for editing and then b to boot
D. v for editing and then b to boot
6. During the boot process for a virtual machine, what is the next step in the boot process after the kernel has taken over the initialization process and initializes devices?
A. The system BIOS initializes devices.
B. The system is placed in multi-user mode.
C. The boot loader initializes the kernel.
D. The root partition is mounted.
7. Where in the filesystem will the EFI system partition (ESP) typically be mounted?
A. /etc/efi
B. /efi
C. /sys/efi
D. /boot/efi
8. When partitioning a disk for a mail server running postfix, which partition/mounted directory should be the largest in order to allow for mail storage?
A. /etc
B. /usr/bin
C. /mail
D. /var
9. Which option within GRUB Legacy is used to indicate that a root partition contains a non-Linux kernel?
A. initrd
B. non-linux
C. rootnoverify
D. root-win
10. Which command will output a new GRUB2 configuration file and send the output to the correct location for booting?
A. update-grub > /boot/grub/grub.cfg
B. update-grub boot > /boot/grub.cfg
C. grub-rc.d
D. grub-boot
11. What is the maximum number of primary partitions available on an MBR partitioning system?
A. 2
B. 4
C. 1
D. 5
12. Which command is used to update the links and cache for shared libraries on the system?
A. ldcache
B. cache-update
C. link-update
D. ldconfig
13. Which command and option is used to update a Debian system to the latest software?
A. apt-update
B. apt-get upgrade
C. dpkg -U
D. apt-cache clean
14. Which option given to a yum command will install a given package?
A. update
B. configure
C. install
D. get
15. What is the location of the home directory for the root user?
A. /home/root
B. /home/su
C. /root
D. /
16. When using rpm2cpio, by default the output is sent to which location?
A. STDOUT
B. The cpio.out file
C. The a.out file
D. The /tmp/cpi.out file
17. Which partition or directory structure typically holds most of the programs for a Linux system?
A. /etc
B. /usr
C. /home
D. /var
18. Your GRUB Legacy configuration includes a dual-boot option with Linux listed first and another operating system listed second. Which of the following options will boot to the Linux partition by default?
A. default=linux
B. default=0
C. default=1
D. default=other
19. Which file should you edit when using GRUB2 in order to set things like the timeout?
A. /etc/default/grub
B. /etc/grub/boot
C. /etc/boot/grub.d
D. /grub.d/boot
20. Which yum option displays the dependencies for the package specified?
A. list
B. deplist
C. dependencies
D. listdeps
21. Which options for an rpm command will display verbose output for an installation along with progress of the installation?
A. -ivh
B. -wvh
C. --avh
D. --ins-verbose
22. Which of the following commands adds /usr/local/lib to the LD_LIBRARY_PATH when using BASH shell?
A. set PATH=/usr/local/lib
B. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
C. LD_LIBRARY_PATH=/usr/local/lib
D. connectpath LD_LIBRARY_PATH=/usr/local/lib
23. Which command can be used to download an RPM package without installing it?
A. yumdl
B. yumdownloadonly
C. yumdown
D. yumdownloader
24. Which command will search for a package named zsh on a Debian system?
A. apt-cache search zsh
B. apt-get search zsh
C. apt-cache locate zsh
D. apt search zsh
25. Which option within /etc/default/grub is used to configure the default operating system for boot?
A. GRUB_OS
B. GRUB_ON
C. GRUB_DEFAULT
D. DEFAULT_OS
26. When found in a GRUB configuration file, what does the ro option indicate?
A. Initially mount the root partition as read-only.
B. Mount the kernel as read-only.
C. Start the init program as read-once.
D. Mount the root partition in Raised Object mode.
27. Within which directory will you find the repositories used by yum?
A. /etc/yum.conf
B. /etc/repos
C. /etc/yum.conf.d
D. /etc/yum.repos.d
28. Which rpm option can be used to verify that no files have been altered since installation?
A. -V
B. -v
C. --verbose
D. --filesum
29. Which option for the grub-mkconfig command sends output to a file instead of STDOUT?
A. -stdout
B. --fileout
C. -o
D. -f
30. The presence of menu.lst within the filesystem typically indicates which condition?
A. GRUB Legacy is in use on the system.
B. GRUB2 is in use on the system.
C. An error has occurred creating the output to menu.lst.
D. The options for rescue boot have been changed.
31. Which command is used to determine the libraries on which a given command depends?
A. ldconfig
B. librarylist
C. listdeps
D. ldd
32. Which of the following is true of Linux swap space?
A. Swap is used to hold temporary database tables.
B. Swap is used as additional memory when there is insufficient RAM.
C. Swap is used by the mail server for security.
D. Swap is used to scrub data from the network temporarily.
33. Which of the following is not typically used to store libraries?
A. /lib
B. /etc/lib
C. /usr/lib
D. /usr/local/lib
34. Which of the following commands updates the package cache for a Debian system?
A. apt-get cache-update
B. apt-cache update
C. apt-get update
D. apt-get upgrade
35. Within which file are details of the current package repositories stored on a Debian system?
A. /etc/apt.list
B. /etc/sources.list
C. /etc/apt/sources.list
D. /etc/apt.d/sources.list
36. Of the following choices, which size would be most appropriate for the /boot partition of a Linux system?
A. Between 100MB and 500MB
B. Between 1GB and 10GB
C. /boot should not be partitioned separately.
D. Less than 5MB
37. Which of the following commands initializes a physical disk partition for use with Logical Volume Manager (LVM)?
A. lvmcreate
B. pvcreate
C. fvcreate
D. lvinit
38. Which of the following commands installs GRUB into the MBR of the second SATA disk?
A. grub-install /dev/hdb2
B. grub-install /dev/sda2
C. grub-config /dev/sda
D. grub-install /dev/sdb
39. Which command should be used to make changes to the choices made when a Debian package was installed?
A. dpkg-reconfigure
B. dpkg -r
C. dpkg --reconf
D. apt-get reinstall
40. Which command is used to create a logical volume with LVM?
A. pvcreate
B. lvmcreate
C. lvcreate
D. volcreate
41. What is the logical order for creation of an LVM logical volume?
A. Physical volume creation, volume group creation, logical volume creation
B. Physical volume creation, logical volume creation, volume group creation
C. Logical volume creation, physical volume creation, volume group creation
D. LVM creation, format, partition
42. Which of the Debian package management tools provides a terminal-based interface for management?
A. apt-get
B. dpkg
C. apt-cache
D. aptitude
43. Which option for yum performs a search of the package cache?
A. seek
B. query
C. --search
D. search
44. Which command option for rpm can be used to show the version of the kernel?
A. rpm kernel
B. rpm -qa kernel
C. rpm search kernel
D. rpm --list kern
45. Assuming a menu entry of Debian in your GRUB configuration, which option in /etc/default/grub would set that as the default operating system to boot?
A. GRUB_OS
B. GRUB_OS_DEF
C. GRUB_DEFAULT
D. GRUB_CONF
46. Which option in /etc/yum.conf is used to ensure that the kernel is not updated when the system is updated?
A. exclude=kernel*
B. exclude-kernel
C. updatekernel=false
D. include-except=kernel
47. Which command should be run after making a change to the /etc/default/grub file?
A. grub
B. grub-mkconfig
C. grub-inst
D. reboot
48. Which command searches for and provides information on a given package on a Debian system, including whether or not the package is currently installed?
A. dpkg -i
B. dpkg -s
C. apt-cache
D. apt-info
49. Which command is used to search for physical volumes for use with LVM?
A. lvmcreate
B. pvcreate
C. lvmdiskscan
D. lvmscan
50. Which option added to yumdownloader will also download dependencies?
A. --deps
B. --resolve
C. --resdeps
D. -d
51. Which of the following installs a previously downloaded Debian package?
A. dpkg -i <package name>
B. apt-install <package name>
C. apt-slash <package name>
D. dpkg -U <package name>
52. A hard drive is reported as hd(0,0) by the GRUB Legacy configuration file. To which of the following disks and partitions does this correspond?
A. /dev/hdb2
B. /dev/hda0
C. /dev/disk1
D. /dev/sda1
53. Which filesystem format type is used for the EFI System Partition (ESP)?
A. FAT
B. EXT4
C. NTFS
D. EXT3
54. Which of the following commands installs extlinux into the /boot partition?
A. extlinux --install /boot
B. extlinux --inst /boot
C. extlinux -boot
D. extlinux /boot install
55. Which of the following commands mounts /dev/sda1 in the /boot partition?
A. mount /dev/sda /boot
B. mount /boot /dev/sda1
C. mount /dev/sda1 /boot
D. mount -dev sda1 /boot
56. Which of the following can be identified as an initial sector on a disk that stores information about the disk partitioning and operating system location?
A. Minimal boot record (MBR)
B. Master boot record (MBR)
C. Init sector
D. Master partition table (MPT)
57. Which option to grub-install will place the GRUB images into an alternate directory?
A. --boot-dir
B. -b
C. -boot
D. --boot-directory
58. Within which file is a list of the currently mounted filesystems stored?
A. /etc/fstab
B. /etc/curmount
C. /var/spool/files
D. /etc/mtab
59. Which command is used to activate swap space on a system?
A. mkswap
B. swapon
C. swapact
D. actswap
60. Which of the following commands displays information about a given physical volume in an LVM setup?
A. pvdisp
B. pvlist
C. pvdisplay
D. pvl
61. Which of the following commands creates a logical volume with LVM?
A. lvc
B. lvcreate
C. lvlist
D. lvmake
62. Which of the following commands looks for LVM physical volumes and volume groups involved in an LVM configuration?
A. vgscan
B. lvmscan
C. lvlist
D. pvlist
63. Which of the following commands is used to display a list of physical volumes involved in LVM?
A. pvdisp
B. pvlist
C. pvscan
D. pvmm
64. Which option to lvchange sets whether the logical volume is available?
A. -a
B. -b
C. -c
D. -d
65. When working with a script to create directories, the script is checking to see if srv/vhosts exists. When doing an ls of the root directory, /, you see that it does exist. However, the script does not. What might be the issue?
A. The script is not executable.
B. The script does not have the setuid bit set.
C. The script is using a relative path.
D. The script is owned by root.
66. You are architecting an application and need to choose between application containerization and virtualization. Which of the following describes a difference between application containers and a virtual machine?
A. An application container can contain only one application whereas a virtual machine can contain many.
B. An application container shares the host kernel whereas a virtual machine can have its own kernel.
C. An application container is used for small applications whereas a virtual machine is used for large applications.
D. The use of application containers is for testing only whereas a virtual machine is used for production.
67. In addition to including /lib and /usr/lib, where does ldconfig look to find additional directories to incorporate into the library path?
A. /etc/lib.conf
B. /etc/ldconf
C. /etc/lib.cfg
D. /etc/ld.so.conf
68. You are working with a cloud instance virtual machine deployed with an Infrastructure-as-a-Service (IaaS) provider. The virtual machine is running slowly. Which type of resource might you add to the cloud instance in order to improve performance?
A. Compute
B. Block storage
C. Networking
D. Disk
69. When working with a system to determine if it is using GRUB or GRUB2, the presence of which file indicates that it is GRUB2?
A. grub.cfg
B. grub.conf
C. menu.lst
D. grub2.conf
70. You are working to create a system image or template from which other virtual machines will be deployed. Which of the following represents a unique item that will change with each deployed virtual host or image?
A. System directories
B. MAC address
C. Guest drivers
D. Pilot homing
71. Which program can be used to deploy an Ubuntu image to a remote cloud provider?
A. dep-image
B. cloud-init
C. init-cloud
D. image-dep
72. Which file is used as the primary configuration file for the yum package manager?
A. /etc/yum.cfg
B. /etc/yum.d
C. /etc/yum.conf
D. /etc/yum.config
73. Which of the following commands and options lists all of the files included with a package on a Debian system?
A. apt -L
B. dpkg -L
C. dpkg -f
D. apt-get show
74. When working with SSH (Secure Shell) keys for a virtual machine cloud deployment, which key is deployed to the virtual machine so that you can connect from the host?
A. The public key
B. The signature file
C. The private key
D. Both the public and private keys
75. When using a GPT disk, which partition needs to be created for a Linux system to boot?
A. /boot/efi
B. /boot/gpt
C. /gpt
D. /vmgpt
76. Which option to zypper installs a package?
A. install
B. retr
C. get
D. ref
77. You are working with a Fedora 22 system and need to install a package. Which of the following is the default package manager on this system?
A. yum
B. apt
C. dpkg
D. dnf
78. You need to list the files available on a package on CentOS. Which of the following commands accomplishes this task?
A. repoquery -l
B. pkgquery -l
C. dpkg -L
D. pkglist
79. You need to create a backup of user home directories including root. Which directory or directories need to be included in the backup?
A. /home
B. /home and /home/root
C. /home and /root
D. /home and /root/home
80. In which file can you find the unique D-Bus machine ID for a given system?
A. /etc/machine-id
B. /etc/machineID
C. /etc/mch.conf
D. /etc/machine.id.conf
81. Which option to ldconfig can be used to process only those directories given on the command line rather than the directories found in /etc/ld.so.conf?
A. -n
B. -i
C. -v
D. -r
82. When working with package caches on Debian, you need to determine if the package list is being updated. Which option to apt-cache shows the number of available packages on the system?
A. packagenum
B. status
C. stats
D. liststatus
83. Which option to grub-install specifies the directory in which the EFI partition is located?
A. --boot-dir
B. --efi
C. --efi-boot
D. --efi-directory
84. Within which file are mount points for the system stored?
A. /etc/fstab
B. /etc/mtab
C. /etc/partitions.list
D. /etc/disk.conf
85. Which of the following option sets for rpm lists the files within the package?
A. lf
B. qlp
C. qf
D. eps
86. When working with a CentOS system, you need to determine the release of a certain package. Which command and option will accomplish this task?
A. dpkg -i
B. yum info
C. yum search
D. apt search
87. You are using a host machine and are unsure if it supports the extensions to enable virtualization. Which of the following should you look for in /proc/cpuinfo to indicate that the system is ready for virtualization?
A. vmx
B. virt
C. envirt
D. vtcapable
88. Within which file can you configure a filter for devices when using vgscan?
A. lvm.conf
B. vg.conf
C. vgscan.conf
D. lv.cfg
89. Which of the following swapon options displays information on the size of swap space along with its used space?
A. --list
B. -a
C. --show
D. -h
Chapter Topic 103: GNU and UNIX Commands
1. Assume that youre using the Bash shell and want to prevent output redirects from accidentally overwriting existing files. Which command and option can be used to invoke this behavior?
A. setoutput -f
B. overwrite=no
C. overwrite -n
D. set -C
2. What command can be used to view the current settings for your environment when using Bash?
A. environment
B. env
C. listenv
D. echoenv
3. Which command is used to access documentation on the Linux computer for a given command?
A. doc
B. heredoc
C. man
D. manual
4. Which of the following commands will print various information about the kernel and architecture, along with other details?
A. info --sys
B. man sys
C. sysinfo
D. uname -a
5. When using sed for a substitution operation, which option must be included so that the substitution applies to the entire line rather than just the first instance?
A. g
B. a
C. r
D. y
6. Which option for the wc command prints the number of lines given as input?
A. -f
B. -a
C. -l
D. -o
7. What is the default number of lines printed by the head and tail commands, respectively?
A. 10 for head, 5 for tail
B. 5 for head, 10 for tail
C. 10 for both head and tail
D. 3 for both head and tail
8. You are attempting to use rmdir to remove a directory, but there are still multiple files and other directories contained within it. Assuming that youre sure you want to remove the directory and all of its contents, what is the command and arguments to remove the directory and all of its contents?
A. rm -f
B. rm -rf
C. rmdir -a
D. rmdir -m
9. Which command will find directories with names beginning with 2014 located beneath the current directory?
A. find ./ -name "2014"
B. find ./ -type d -name "2014"
C. find / -type d "2014"
D. find ./ -type d -name "2014*"
10. Which of the following commands will provide the usernames in a sorted list gathered from the /etc/passwd file?
A. cat /etc/passwd | awk -F : '{print $1}' | sort
B. sort /etc/passwd | cut
C. echo /etc/passwd
D. cat /etc/passwd | awk '{print $1}' | sort
11. Which options to ls will produce output, including hidden (dot) files, in a list that is ordered such that the newest files are at the end of the output?
A. -la
B. -lat
C. -latr
D. -ltr
12. What will be the result if the touch command is executed on a file that already exists?
A. The access time stamp of the file will change to the current time when the touch command was executed.
B. The file will be overwritten.
C. There will be no change.
D. The file will be appended to.
13. Which option to both mv and cp will cause the command to prompt before overwriting files that already exist?
A. -f
B. -Z
C. -r
D. -i
14. Which of the following commands will send the contents of /etc/passwd to both STDOUT and to a file called passwordfile?
A. cat /etc/passwd > passwordfile
B. var /etc/passwd | passwordfile
C. cat /etc/passwd | tee passwordfile
D. echo /etc/passwd | stdout > passwordfile
15. The current hierarchy on the server contains a directory called /usr/local. You need to create additional directories below that are called /usr/local/test/october. Which command will accomplish this task?
A. mkdir -p /usr/local/test/october
B. mkdir /usr/local/test/october
C. mkdir -r /usr/local/test/october
D. mkdir -f /usr/local/test/october
16. Which option to the cp command will copy directories in a recursive manner?
A. -v
B. -R
C. -Z
D. -i
17. You have received a file that does not have a file extension. Which command can you run to help determine what type of file it might be?
A. grep
B. telnet
C. file
D. export
18. Which command will create an image of the /dev/sda1 disk partition and place that image into a file called output.img?
A. dd if=sda of=/dev/sda1
B. dd if=output.img of=/dev/sda1
C. dd if=/dev/sda1 of=output.img
D. echo /dev/sda1 > output.img
19. What is the default delimiter used by the cut command?
A. Colon
B. Tab
C. Space
D. Comma
20. Which of the following will unzip and extract the contents of a file that has been tarred and gzipped?
A. tar -zxf <file.tgz>
B. tar -xf <file.tgz>
C. tar -vz <file.tgz>
D. tar -fd <file.tgz>
21. What command is used to bring a command to foreground processing after it has been backgrounded with an &?
A. bg
B. fore
C. 4g
D. fg
22. You need to write a script that gathers all of the process IDs for all instances of Apache running on the system. Which of the following commands will accomplish this task?
A. ps auwx | grep apache
B. pgrep apache
C. processlist apache
D. ls -p apache
23. Which of the following command lines would monitor a single process called nagios in a continuous manner?
A. top -n 1
B. top -p 23
C. ps -nagios
D. top -p`pidof nagios`
24. Users are reporting that various programs are crashing on the server. By examining logs, you see that certain processes are reporting out-of-memory conditions. Which command can you use to see the overall memory usage, including available swap space?
A. tree
B. pgrep
C. uptime
D. free
25. You are using the Vi editor for changing a file and need to exit. You receive a notice indicating "No write since last change". Assuming you want to save your work, which of the following commands will save your work and exit Vi?
A. :wq
B. :q!
C. dd
D. x
26. What option is used to change the number of lines of output for the head and tail commands?
A. -l
B. -f
C. -g
D. -n
27. Which command can be used to determine the current load average along with information on the amount of time since the last boot of the system?
A. uptime
B. sysinfo
C. bash
D. ls -u
28. You need to start a long-running process that requires a terminal and foreground processing. However, you cannot leave your terminal window open due to security restrictions. Which command will enable you to start the process and return at a later time to continue the session?
A. fg
B. bg
C. kill
D. screen
29. You have attempted to stop a process using its service command and also using the kill command. Which signal can be sent to the process using the kill command in order to force the process to end?
A. -15
B. -f
C. -9
D. -stop
30. When working in the Bash shell, you need to redirect both STDOUT and STDERR. Which of the following commands will redirect both STDOUT and STDERR?
A. 1>2
B. >2
C. 2>&1
D. >>
31. Which command can be run to determine the default priority for processes spawned by the current user?
A. prio
B. nice
C. renice
D. defpriority
32. Which of the following egrep commands will examine /etc/passwd to find users who are using either /bin/bash or /usr/bin/zsh for their shell environment?
A. grep sh /etc/passwd
B. egrep '/*/.sh$' /etc/passwd
C. grep '/*/.=sh$' /etc/passwd
D. egrep '/*/..?sh$' /etc/passwd
33. Which option to the man command accesses a different level of documentation, for example, system call documentation?
A. man 2 <argument>
B. progman <argument>
C. man --sys <argument>
D. man --list sys
34. When editing with Vi, which command changes to insert mode and opens a new line below the current cursor location?
A. f
B. a
C. o
D. i
35. Which kill signal can be sent in order to restart a process?
A. -HUP
B. -RESTART
C. -9
D. -SIG
36. Which of the following commands will display the last 50 lines of your command history when using Bash, including commands from the current session?
A. bashhist 50
B. history 50
C. cat .bash_history
D. tail -f .bash_history
37. You have backgrounded several tasks using &. Which command can be used to view the current list of running tasks that have been backgrounded?
A. procs
B. plist
C. jobs
D. free
38. Which of the following commands searches each users .bash_history file to determine whether the user has invoked the sudo command?
A. find /home -name "bash_history" | grep sudo
B. find /home -name ".bash_history" | xargs grep sudo
C. find /home/.bash_history | xargs grep sudo
D. find /home -type history | xargs grep sudo
39. Which command will watch the Apache log at /var/log/httpd/access.log and continually scroll as new log entries are created?
A. watch /var/log/httpd/access.log
B. tail /var/log/httpd/access.log
C. tail -f /var/log/httpd/access.log
D. mon /var/log/httpd/access.log
40. You are debugging a configuration file and the daemon indicates there is a problem on line 932. Which of the following commands will prepend line numbers onto the file?
A. lines
B. wc -l
C. newline
D. nl
41. You receive a file with an .lzma extension. Which command can you use to decompress this file?
A. xz
B. lz
C. gz
D. bzip
42. Which find command will locate files within the current directory that have been modified within the last 24 hours?
A. find ./ -type f -mtime 0
B. find ./ -type f -mtime 24
C. find ./ -type f -mtime +1
D. find ./ type -f time 24
43. Which command will move all files with a .txt extension to the /tmp directory?
A. mv txt* tmp
B. move *txt /temp
C. mv *.txt /tmp
D. mv *.txt tmp
44. Which command prints your current directory?
A. cwd
B. curdur
C. cd
D. pwd
45. Assume that you have a file called zips.txt that contains several postal ZIP codes and you need to determine how many unique ZIP codes there are in the file. Which of the following commands can be used for that purpose?
A. sort zips.txt | uniq -c
B. uniq zips.txt
C. count zips.txt
D. cat zips.txt | uniq -c
46. When using Bash, how would you execute the last command starting with a certain string, even if that command was not the last one that you typed?
A. Precede the command with ! and then the string to search for.
B. Search for the command in history.
C. Precede the command with a ? and then the string to search for.
D. This is not possible with Bash.
47. Which command can be used to kill all processes by using their name?
A. killproc
B. killname
C. killall
D. kill -f
48. Youre working with a large file in Vi and need to search for instances of a string earlier in the file. Which key will search backward in the file?
A. /
B. h
C. ?
D. x
49. You need to declare a local environment variable that will then be available to child processes. Which of the following commands accomplishes this task?
A. ex
B. echo
C. dec
D. export
50. You are creating a Bash shell script and need to output the current script name to the current terminal. Which of the following commands accomplishes this task?
A. cat <CMD>
B. echo $0
C. echo $SCRIPT
D. echo $PS1
51. You have downloaded a file with a .gz extension. What is the most likely command that you will use to decompress this file?
A. unz
B. gunzip
C. hunzip
D. gzunzip
52. You need to remove a single file from a directory if it exists but would like to be prompted for confirmation before doing so. Which option to the rm command causes the command to prompt for confirmation?
A. -a
B. -e
C. -i
D. -o
53. You need to determine files that are sized above 1GB. Which of the following commands accomplishes this task?
A. find / -size +1G
B. find / -size 10000M
C. find / +1M
D. find / -size +1B
54. Which option to cpio lists the files as it is operating on them?
A. -l
B. -v
C. -k
D. -s
55. Which command is used to send contents of a bzip2 archive to STDOUT?
A. bzout
B. bzcat
C. bz2cat
D. bz2echo
56. You are attempting to find more information about the jobs command; however, an Internet search was not particularly helpful because there are so many Linux-related jobs available. Additionally, you attempted to view the man page for the jobs command but it was not available. Which man page should you use to view more information on jobs?
A. jbs
B. procctl
C. bash
D. ps
57. You need to start a process that cannot be sent or will not accept a SIGHUP signal. Which command should be used to start the process?
A. nosig
B. nohup
C. nokill
D. noproc
58. You need to run a command periodically and examine its output in real time. Which of the following commands enables this scenario?
A. mon
B. procmon
C. pgrep
D. watch
59. You would like to tail a log file to watch entries as they are being added to the log file. In addition, you would also like to work within the same terminal window or SSH (Secure Shell) session to add entries to another file at the same time. Which command can be used to create two sessions within the same terminal window?
A. screen
B. tmux
C. sess
D. termse
60. You need to kill several processes at once. Rather than writing a complex ps-based command to do so, you can use which other command?
A. pkill
B. psk
C. pskill
D. prock
61. You are using pgrep to find the process IDs for a given command. However, several other commands seem to also appear. Which option to pgrep enables matching against the full path of the process?
A. -f
B. -d
C. -o
D. -i
62. You need to determine the exact command that will be run based on your current environment settings. Which command is used for this purpose?
A. what
B. which
C. find
D. ls
63. An environment variable has been set on login, but you need to remove that variable temporarily for the current session. Which shell built-in command can be used for this purpose?
A. reset
B. unset
C. undo
D. clear
64. You cannot find the man page of a command but you know the command exists. For example, the alias command exists but there is no man page for it. Which of the following commands could you execute to determine what type of command alias is?
A. type
B. cmd
C. uses
D. listr
65. Which type of quotes are used so that variables are interpolated within a Bash shell script?
A. Escaped quotes
B. Single quotes
C. Double quotes
D. Side quotes
66. Which of the following pagers includes the ability to search backward and forward as well as move backward and forward, line-by-line, and page-by-page?
A. more
B. mplus
C. less
D. catch
67. You have a specialized need for outputting a file in octal format. Which command or series of commands can be used for this purpose?
A. oct
B. cat <file> | octalf
C. od
D. octf
68. Which option to sha256sum causes the file to be read in binary mode?
A. -i
B. -b
C. -c
D. -p
69. When operating in command mode, which keys enable you to move the cursor in the Vi editor?
A. a, s, d, f
B. h, j, k, l
C. q, w, e, r
D. z, x, c, v
70. Which options to xz are functionally equivalent to the xzcat program?
A. decompress and output
B. output and format
C. decompress and stdout
D. stdout and format
71. Which environment variable is used to control the default text editor used on a Linux system?
A. EDITOR
B. EDIT
C. TEXTEDITOR
D. DEFAULT_EDITOR
72. You need to examine the seventh section of the manual page for regular expressions, or regex, on a Linux system. Which command displays the seventh section of the manual?
A. man regex -7
B. man regex 7
C. man --page 7 regex
D. man 7 regex
73. Which of the following commands reprioritizes an already running process?
A. nice
B. renice
C. chnice
D. altnice
74. The fgrep command is equivalent to running the grep command with which option?
A. -f
B. -F
C. -a
D. -E
75. Which of the following regular expressions would find the pattern Steve or steve in a file when used with grep?
A. '[sS]teve'
B. '[S]*teve'
C. '^[Ss]teve'
D. '[$Steve]'
76. Which of the following commands shows the currently running processes and their resource usage in real time, updated every few seconds?
A. nice
B. ps
C. top
D. procs
77. You have been asked to create a compressed file that will be readable by those with other operating systems. Which tool can you use for this purpose?
A. gzip
B. bzip2
C. xz
D. tar
78. You need to match files that begin with 201, as in 2017, 2018, 2019. Which of the following wildcard specifications can be used?
A. 201?
B. 201$
C. 201@
D. 201]
79. You need to break a large file into smaller pieces. Which command can be used for this purpose?
A. cut
B. split
C. dice
D. rem
80. When examining the output from top, you see that a process has a value in the PR column of 20. To what does the PR column refer?
A. The process ID
B. The process utilization
C. The process priority
D. The processor core on which the process is executing
81. You need to cut or remove eight lines from a file while editing with Vi. Which combination should be used for this purpose?
A. d7
B. d8
C. r8
D. x7
82. Which command is used in order to decompress a file that has been compressed with xz?
A. unxz
B. dexz
C. xzu
D. u2xz
83. Which of the following commands uses 128-bit message digests?
A. sha256sum
B. sha512sum
C. sh128sum
D. md5sum
84. You have several files that need to be combined, with a line from each file being appended onto a single line. Which command can be used for this purpose?
A. paste
B. comb
C. appfile
D. combo
85. You need to run a command that is not inside your current path. Which of the following represents the typical method for doing so?
A. Use a fully qualified path for the command.
B. Set the PATH environment variable to include the correct path.
C. Restart the shell environment.
D. Restart the computer for settings to take effect.
86. Which signal is used by default by the pkill command?
A. SIGKILL
B. SIGTERM
C. SIGHUP
D. SIGKS
87. You are working with the jobs built-in command to display jobs. You would like to see only running jobs. Which option to the jobs built-in command will display only running jobs?
A. -s
B. -a
C. -l
D. -r
88. Which option to the bunzip2 command sends output to STDOUT, much like the bzcat command?
A. -s
B. -o
C. -c
D. -d
Chapter Topic 104: Devices, Linux Filesystems, Filesystem Hierarchy Standard
1. Which option best describes the following output from the ls -la command: lrwxrwxrwx. 1 root root 35 Jul 8 2014 .fetchmailrc -> .configs/fetchmail/.fetchmailrc?
A. It is a file called .fetchmailrc that is linked using a symbolic link.
B. It is a file called .configs/fetchmail/.fetchmailrc that is owned by lrwxrwxrwx.
C. It is a directory called .fetchmailrc that is owned by user Jul.
D. It is a local directory called .configs/fetchmail/.fetchmailrc.
2. Assuming that a USB disk contains a single partition and is made available on /dev/sdb, which command mounts the disk in /media/usb?
A. mount /dev/sdb1 /media/usb
B. usbconnect /dev/sdb0 /media/usb
C. mount /dev/sdb0 /media/usb
D. usbmount /dev/sdb1 /media/usb
3. Which option within a partition-mounting command will cause the partition to be mounted in such a way as to prevent execution of programs?
A. execless
B. stoprun
C. noexec
D. norun
4. When working with partitions on disk, you see the type 0x82. Which type of partition is this?
A. Linux
B. Linux swap
C. NTFS
D. FAT
5. Which partition type should be created for a Linux system, non-swap partition?
A. 82
B. 83
C. 84
D. L
6. Which command can be used to determine the location of a given executable that would be run if typed from your current environment and location?
A. which
B. what
C. whatis
D. when
7. Which of the following commands will correctly change the group ownership of the file called a.out to users?
A. chgrp users a.out
B. chgrp a.out users
C. groupchg a.out users
D. grpchg users a.out
8. Another administrator made a change to one of the local scripts used for administrative purposes. The change was also immediately reflected in your copy of the script. However, when examining the file with ls, you see that it appears to be a normal file. What is the likely cause of such a scenario?
A. The file was executed after edit.
B. The administrator copied the file to yours.
C. Your file is a hard link to the original.
D. The file has been restored from backup.
9. Which of the following commands shows the usage of inodes across all filesystems?
A. df -i
B. ls -i
C. du -i
D. dm -i
10. Youre running fsck on an ext3 filesystem, and the process is taking longer than expected and requiring input from the administrator to fix issues. What option could be added to fsck next time so that the command will automatically attempt to fix errors without intervention?
A. -o
B. -V
C. -y
D. -f
11. Which of the following describes a primary difference between ext2 and ext3 filesystems?
A. ext3 was primarily a bug fix update to ext2.
B. ext3 includes journaling for the filesystem.
C. ext3 completely changed the tools needed for management of the disks.
D. ext3 filesystems have no significant differences.
12. Which option to umask will display the permissions to be used in a Portable Operating System Interface (POSIX) format?
A. -P
B. -p
C. -S
D. -v
13. Which option to ln creates a symlink to another file?
A. -sl
B. -s
C. -l
D. --ln
14. Which of the following commands can be used if you need to locate various elements of a given command, such as its binaries and man pages?
A. whatis
B. find
C. whereis
D. ls
15. Which option in /etc/updatedb.conf will remove a path from inclusion in the results?
A. PRUNEPATHS
B. EXCLUDEPATHS
C. INCLUDEEXCLUDE
D. SEPARATEPATH
16. According to the filesystem hierarchy standard (FHS), what is the correct location for site-specific data for a server?
A. /etc
B. /var
C. /tmp
D. /srv
17. Which of the following commands enables the sticky bit for a user on a file called homescript.sh?
A. chmod +sticky homescript.sh
B. chmod 755 homescript.sh
C. chmod u+s homescript.sh
D. chown u+sticky homescript.sh
18. Which option to the mount command will mount all filesystems that are currently available in /etc/fstab?
A. -g
B. -a
C. -r
D. -y
19. Which command is used to format a swap partition?
A. fdisk
B. mkswap
C. formatswap
D. format -s
20. Which command and option is used to display the number of times that a filesystem has been mounted?
A. tune2fs -l
B. cat /etc/fstab
C. mount -a
D. less /etc/fsmnt
21. Which option to xfs_metadump displays a progress indicator?
A. -g
B. -p
C. -f
D. -v
22. The system is running out of disk space within the home directory partition and quotas have not been enabled. Which command can you use to determine the directories that might contain large files?
A. du
B. df
C. ls
D. locate
23. Which file contains information about the filesystems to mount, their partitions, and the options that should be used to mount them?
A. /etc/filesystems
B. /etc/mounts
C. /etc/fstab
D. /srv/mounts
24. According to the FHS, what is the proper mount point for removable media?
A. /etc
B. /srv
C. /tmp
D. /media
25. Which file contains information on currently mounted filesystems, including their mount options?
A. /etc/mtab
B. /etc/fstab
C. /tmp/files
D. /etc/filesystems
26. Which option to umount will cause the command to attempt to remount the filesystem in read-only mode if the unmounting process fails?
A. -o
B. -r
C. -f
D. -v
27. The umask reports as 022. What is the permission that will be in effect for a newly nonexecutable created file?
A. u+rw, g+r, w+r
B. 755
C. 022
D. a+r
28. The locate command is reporting out-of-date information. Which command should be run in order to have the locate command update its database?
A. locatedb -u
B. locate -u
C. updatedb
D. updatelocate
29. Which shell built-in command can be used to determine what command will be run?
A. type
B. when
C. find
D. help
30. Which option to chown recursively changes the ownership?
A. -f
B. -R
C. -a
D. -m
31. Which of the following represents the correct format for the /etc/fstab file?
A. <directory> <device> <type> <options>
B. <device> <type> <options>
C. <device> <type> <options> <directory> <dump> <fsck>
D. <filesystem> <mount point> <type> <options> <dump> <pass>
32. Which of the following commands is used to identify the UUID for partitions?
A. blkid
B. ls
C. find
D. cat
33. Which of the following describes the priority order for configuration files with systemd?
A. Files in /etc/, files in /run, and then files in /lib
B. Files in /run, files in /etc/, and then files in /lib
C. Files in /lib, files in /run, and then files in /etc
D. Files in /lib, files in /etc, and then files in /run
34. Which options to the fsck command will find and automatically assume that it should repair errors that it finds?
A. -y
B. -vy
C. -my
D. -xy
35. Which option to mke2fs sets the type of filesystem to be created?
A. -F
B. -a
C. -t
D. -e
36. Which of the following files is the default configuration file for the autofs automounter?
A. /etc/autofs
B. /etc/auto.master
C. /etc/autofs.conf
D. /etc/automounter.conf
37. Which of the following commands is used to create an ISO filesystem?
A. mkiso
B. mkfsiso
C. mkisofs
D. isofs-mk
38. Which option to the tune2fs command sets the maximum mount count before the system will automatically run fsck on the partition on boot?
A. -b
B. -c
C. -C
D. -a
39. Which option to the mount command can be used to simulate the mount process without actually mounting the filesystem?
A. -q
B. -v
C. -l
D. -f
40. When viewing /proc/mounts, you see a filesystem with the letters ro in the fourth column. To what do the letters ro refer?
A. relative option
B. realtime option
C. read-only
D. relative-only
41. Which option to dumpe2fs displays the bad blocks for a given partition?
A. -bb
B. -C
C. -b
D. -f
42. Which of the following filesystem types features copy-on-write?
A. ext3
B. ext4
C. FAT
D. Btrfs
43. Which of the following commands displays filesystem geometry for an XFS filesystem?
A. xfsinfo
B. xfs_info
C. xfs -info
D. xfs --info
44. Which of the following commands can be used to display information such as the UUID for partitions on a system?
A. blkid
B. blockdev
C. devinfo
D. uuidinfo
45. Which option to the umount command will cause it to unmount only filesystems of the specified type?
A. -v
B. -f
C. -t
D. -a
46. Which command causes unwritten data to be written to disk immediately?
A. write
B. wrnow
C. connwrite
D. sync
47. Which option to xfs_check is used to verify a filesystem that is stored in a file?
A. -v
B. -a
C. -f
D. -d
48. Which option to debugfs causes the filesystem to be opened in read-write mode rather than the default read-only?
A. -rw
B. -w
C. -r
D. -n
49. Which daemon is responsible for monitoring Self-Monitoring, Analysis, and Reporting Technology (SMART)-compatible hard drives?
A. smartmon
B. smarty
C. sartd
D. smartd
50. When checking an ext3 filesystem, which option to the fsck.ext3 command causes it to run the check even if the filesystem is apparently marked as clean?
A. f
B. -m
C. -a
D. -c
51. You are performing an xfsrestore. The xfsdump was executed with a block size of 4MB. Which option do you need to invoke on xfsrestore in order for it to successfully use this dump?
A. -b 4M
B. -g 1M
C. -i 1M
D. -k 1028K
52. You see the word defaults within /etc/fstab. Which options are encompassed within the defaults?
A. ro, exec, auto
B. rw, suid, dev, exec, auto, nouser, async
C. rw, exec, auto, nouser, async
D. rw, exec, nouser, async, noauto, suid
53. Which of the following commands creates a btrfs subvolume?
A. btrfs create subvolume
B. btrfs subvolume create
C. btrfs sv create
D. btrfs svcreate
54. Which of the following options to xfsdump sets the maximum size for files to be included in the dump?
A. -p
B. -s
C. -z
D. -b
55. Which option to the tune2fs command sets the behavior when a filesystem error occurs?
A. -f
B. -d
C. -e
D. -k
56. The /etc filesystem has been mounted as a read-only for a recovery process. You need to mount another partition. Which option to the mount command causes it to not write to /etc/mtab?
A. -a
B. -m
C. -b
D. -n
57. Which of the following commands deactivates swap space?
A. swapoff
B. swap -off
C. unmountswap
D. uswap
58. Within the [mount] section of a systemd mount unit, which directive specifies the location for mounting the chosen filesystem?
A. Where=
B. Location=
C. List=
D. Dest=
59. Which of the following commands can be used to format a FAT filesystem?
A. mkfs.fat
B. mkfs -f
C. mkfs --fat
D. mkfat
60. Which of the following commands adds a journal to an existing ext2 filesystem?
A. tune2fs -jrn
B. e2fs -x
C. tune3fs
D. tune2fs -j
61. Which of the following commands creates a snapshot of a btrfs subvolume?
A. btrfs subvolume snapshot
B. btrfs snapshot --create
C. btrfs create snapshot
D. btrfs --create
62. Which option to xfs_repair will force log zeroing even if there may be metadata within the log?
A. -L
B. -v
C. -d
D. -V
63. Which of the following commands mounts a filesystem in read-only mode?
A. mount read-only
B. mount --read
C. mount -o ro
D. mount -or
64. When you are using tune2fs to set an extended option such as stripe_width, which command-line option is needed to signify that an extended option follows?
A. -extend
B. -E
C. -e
D. -f
65. Which utility is used for formatting GPT disks?
A. gdisk
B. gptdisk
C. gpdisk
D. pgdisk
66. What is the maximum size of a partition on an MBR-formatted disk?
A. 2TB
B. 4TB
C. 2MB
D. 512TB
67. Which option to mkfs.ext4 can be used to prevent reservation of blocks for system or
superuser use?
A. -r 0
B. -r 0b
C. -m 0
D. -m 0b
68. What is the default time in seconds that xfs_fsr will use to reorganize a filesystem?
A. 3600
B. 7200
C. 86400
D. 5150
69. A user who is a member of the custom admins group is attempting to read the contents of a file but is not the owner of the file. Rather than granting sudo access to this file, what is another way to grant read access, assuming that the file is currently marked with 640 permissions? Note that you should choose the most appropriate answer to fulfill the need while minimizing additional privileges.
A. Grant root access to the user.
B. Run chmod 777 on the file.
C. Use chgrp to change group ownership to admins.
D. Use chown to change the ownership of the file to the individual user.
70. Which option to lsblk shows empty devices?
A. -g
B. -a
C. -r
D. -y
71. The /media/ mount point is used frequently for which types of devices?
A. Hard drives
B. SAN
C. NAS
D. USB devices
72. Which of the following commands is used to format an exFAT filesystem?
A. mkexfat
B. mkfat.ex
C. mkfs.exfat
D. mkfs2.exf
73. Which of the following commands is used for debugging an XFS-formatted filesystem?
A. debug_xfs
B. xfs_debug
C. xfs_db
D. debugxfs
74. Youre working with an ext2 filesystem and you suspect the superblock is corrupted. Which option to e2fsck enables you to specify the location of an alternate superblock?
A. -B
B. -s
C. -b
D. -o
75. Which option to df shows the numerical output in larger size increments, like MB, GB, TB, and so on rather than in bytes?
A. -h
B. -m
C. -n
D. -s
76. Assuming the use of Bash for the shell, in which file can the umask be set such that the file creation mask is set automatically on login?
A. /etc/umask.def
B. /etc/profile
C. /etc/bash.d/umask
D. /etc/bash.umask
77. You need to enable two users to edit the same file but keep their own individual changes. Another administrator suggested making a symbolic link for the file. Is a symbolic link the appropriate solution for this scenario and, if not, what is?
A. A symbolic link is not appropriate because the users cannot keep their own changes. A copy would be a better option.
B. A symbolic link is appropriate here because each user can access the file, assuming write permissions.
C. A symbolic link is not appropriate given that the users will not have permissions on symbolic links. Linux cannot meet the scenario described.
D. A symbolic link is appropriate because symbolic links have the ability to do version control, thus enabling the scenario.
78. You have deleted a user from the system and want to determine if this user still has files on the system. Which command will fulfill this scenario?
A. locate <user>
B. find -uid <uid>
C. find -user <user>
D. fileloc -user <user>
79. You need to update the locate database. Which of the following commands is used for this purpose?
A. updatedb
B. locatedb
C. updlocdb
D. locdbupd
80. Which option to lsblk shows the UUID of each filesystem?
A. u
B. -f
C. -o
D. -a
81. Which option to mkswap checks the device for bad blocks before formatting?
A. -b
B. -B
C. -c
D. -d
82. You are examining output from ls -la and one file contains the permissions -rwSrw-r--. To what does the S refer?
A. Specific execute
B. Source formatting
C. Selective execution
D. Sticky bit
83. You need to change file permissions to be setgid for a file called sync.sh. The file is normally permission 755. Which of the following commands accomplishes this task?
A. chmod 2775 sync.sh
B. chmod u+s sync.sh
C. chmod 2755 sync.sh
D. chmod 4755 sync.sh
84. Which of the following commands finds files with a .sql extension across the entire filesystem?
A. find . -name "*.sql"
B. find /root -ext sql
C. find / -name "*.sql"
D. find / -exten ".sql"
85. When working with /etc/fstab to mount by UUID, which syntax is correct as the first column in /etc/fstab, assuming a UUID denoted by <UUID>?
A. <UUID>
B. UUID=<UUID>
C. ID=<UUID>
D. GPT=<UUID>
86. Which option to du displays information on inode usage?
A. -i
B. -h
C. --inodes
D. -d
87. Which of the following find commands will look for files that are over 1GB in size?
A. find -size +1G
B. find -size 1GB
C. find -fssize +1GB
D. find -filesize +1G
88. You have a set of libraries that were installed into /usr/local/lib and would like to ensure that the libraries are also available in /usr/lib. What is the preferred way to make the libraries available in this location?
A. Copy the libraries.
B. Create a symbolic link.
C. Move the libraries.
D. Create a script to synchronize the libraries between the two locations with rsync.