ccpq/data/lpic1_book_101-500.csv

64 KiB
Raw Blame History

11. Which of the following commands is used to view kernel-related udev events in real time?
2A. udevls all
3B. lsudev -f
4C. udevmon -a
5D. udevadm monitor
62. Which command enables you to view the current interrupt request (IRQ) assignments?
7A. view /proc/irq
8B. cat /proc/interrupts
9C. cat /dev/irq
10D. less /dev/irq
113. Configuration of udev devices is done by working with files in which directory?
12A. /udev/devices
13B. /devices/
14C. /udev/config
15D. /etc/udev
164. Which command is used to automatically load a module and its dependencies?
17A. modprobe
18B. lsmod
19C. insmod
20D. rmmod
215. Which command is used to obtain a list of USB devices?
22A. usb-list
23B. lsusb
24C. ls-usb
25D. ls --usb
26A. query
27B. info
28C. getinfo
29D. devinfo
307. Which command can be used to view the kernel ring buffer in order to troubleshoot the boot process?
31A. lsboot
32B. boot-log
33C. krblog
34D. dmesg
35A. Runlevel 5
36B. Runlevel SU
37C. Runlevel 1
38D. Runlevel 6
39A. /etc/init-d
40B. /etc/init
41C. /etc/sysV
42D. /etc/init.d
4310. Which command can be used to reboot a system?
44A. init 6
45B. shutdown -h -t now
46C. init 1
47D. refresh-system
48A. init-refresh
49B. init 6
50C. telinit
51D. reload-inittab
5212. Which command displays the current runlevel for a system?
53A. show-level
54B. init --level
55C. sudo init
56D. runlevel
5713. Within which folder are systemd unit configuration files stored?
58A. /etc/system.conf.d
59B. /lib/system.conf.d
60C. /lib/systemd/system
61D. /etc/sysconfd
6214. Which command is used with systemd in order to list the available service units?
63A. systemd list-units
64B. systemctl list-units
65C. systemd unit-list
66D. systemctl show-units
6715. Which option to lspci is used to display both numeric codes and device names?
68A. -numdev
69B. -n
70C. -nn
71D. -devnum
7216. Which command can be used to obtain a list of currently loaded kernel modules?
73A. insmod
74B. modlist
75C. ls --modules
76D. lsmod
7717. Which option to the modprobe command shows the dependencies for a given module?
78A. --show-options
79B. --list-deps
80C. --show-depends
81D. --list-all
8218. Which command can you use to send a message to all users who are currently logged into a system?
83A. cat
84B. wall
85C. tee
86D. ssh
8719. Which of the following is a good first troubleshooting step when a hard disk is not detected by the Linux kernel?
88A. Unplug the disk.
89B. Check the system BIOS.
90C. Restart the web server service.
91D. Run the disk-detect command.
9220. Within which directory is information about USB devices stored?
93A. /etc/usbdevices
94B. /var/usb
95C. /lib/sys/usb
96D. /sys/bus/usb/devices
97A. /var/log/bootmessages
98B. /var/log/mail.info
99C. /var/adm/log/boot.info
100D. /var/log/dmesg
10122. Which command and option can be used to determine whether a given service is currently loaded?
102A. systemctl --ls
103B. telinit
104C. systemctl status
105D. sysctl -a
10623. Which command on a systemd-controlled system would place the system into single-user mode?
107A. systemctl one
108B. systemctl isolate rescue.target
109C. systemctl single-user
110D. systemctl runlevel one
11124. Which command on a system controlled by Upstart will reload the configuration files?
112A. initctl reload
113B. systemd reload
114C. upstart --reload
115D. ups -reload
116A. --reload
117B. --list
118C. --all
119D. --ls
12026. A drive connected to USB is considered which type of device?
121A. Medium
122B. Coldplug
123C. Hotplug
124D. Sideplug
12527. 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?
126A. usbstop /dev/sda
127B. umount /dev/sda1
128C. unmount /dev/sda1
129D. dev-eject /dev/sda1
13028. 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?
131A. Rebooting the system
132B. Viewing the contents of /var/log/usb.log
133C. Connecting the drive to a USB port that you know the number of
134D. Running dmesg and looking for the disk
13529. Which of the following commands will initiate an immediate shutdown of the system?
136A. shutdown -c
137B. halt
138C. systemd stop
139D. stop-system
14030. Which option within a systemd service file indicates the program to execute?
141A. StartProgram
142B. ShortCut
143C. ExecStart
144D. Startup
14531. Which command will display the default target on a computer running systemd?
146A. systemctl defaults
147B. update-rc.d defaults
148C. systemctl runlevel
149D. systemctl get-default
15032. Which option to the systemctl command will change a service so that it runs on the next boot of the system?
151A. enable
152B. startonboot
153C. loadonboot
154D. start
15533. Which of the following best describes the /proc filesystem?
156A. /proc contains information about files to be processed.
157B. /proc contains configuration files for processes.
158D. /proc contains variable data such as mail and web files.
15934. Which command will retrieve information about the USB connections on a computer in a tree-like format?
160A. lsusb -tree
161B. lsusb --tree
162C. lsusb -t
163D. usblist --tree
164A. The use of systemd means that drivers are not required for most devices.
165B. The use of initramfs means that support is enabled by default.
166C. The system does not need a driver for the device.
167D. Support for the device has been compiled directly into the kernel.
16836. Which option to rmmod will cause the module to wait until its no longer in use to unload the module?
169A. -test
170B. -f
171C. -w
172D. -unload
173A. mount --continue
174B. tune2fs -e continue
175C. mkfs --no-remount
176D. mount -o remount
17738. Within which directory are rules related to udev stored?
178A. /etc/udev.conf
179B. /etc/udev.conf.d
180C. /etc/udev/rules.d
181D. /etc/udev.d
18239. Which option to lspci displays the kernel driver in use for the given Peripheral Component Interconnect (PCI) device?
183A. -t
184B. -k
185C. -n
186D. -a
18740. Within which of the following directories will you find blacklist information for modules loaded with modprobe?
188A. /etc/blacklist
189B. /etc/modprobe.d
190C. /etc/blacklist.mod
191D. /etc/modprobe
192A. mkinit
193B. dracut
194C. mkraminit
195D. mkinitfs
19642. Within which file will you find a list of the currently available kernel symbols?
197A. /proc/kernelsyms
198B. /etc/kernel.conf
199C. /etc/lsyms
200D. /proc/kallsyms
201A. systool -v -m <module>
202B. modinfo -r <module>
203C. lsmod <module>
204D. infmod <module>
205A. /proc/sys/kmod
206B. /proc/sys/kernel
207C. /proc/kernel
208D. /proc/kernel/sys
20945. Within which directory should systemd unit files that you create be stored?
210A. /etc/system
211B. /etc/systemd/system
212C. /usr/share/systemd
213D. /usr/share/system
21446. Which of the following commands should you execute after making changes to systemd service configurations in order for those changes to take effect?
215A. systemd reload
216B. reboot
217C. systemctl daemon-reload
218D. systemctl reboot
21947. Which of the following files contains the runlevels for the system along with a reference to the corresponding rc file?
220A. /etc/runlevels
221B. /etc/inittab
222C. /etc/rc
223D. /etc/runlevel
22448. Which boot loader can be used for File Allocation Table (FAT) filesystems and might be used for a rescue disk?
225A. SYSBOOT
226B. SYSLINUX
227C. TIELINUX
228D. FATLINUX
22949. Which of the following is used to provide an early filesystem-based loading process for key drivers needed to continue the boot process?
230A. bootrd
231B. driverload
232C. initrd
233D. initdrv
234A. defrag
235B. fsck
236C. checkfs
237D. chkfs
23851. Which of the following commands places the system in single-user mode?
239A. tellinit 1
240B. chginit 1
241C. telinet 1
242D. telinit 1
24352. Which of the following commands changes the boot order for the next boot?
244A. efibootmgr -c
245B. efibootmgr -b -B
246C. efibootmgr -o
247D. efibootmgr -n
24853. Which boot loader can be used with ISO9660 CD-ROMS?
249A. ISOLINUX
250B. EFIBOOT
251C. ISOFS
252D. BOOTISO
25354. Within which directory are systemd user unit files placed by installed packages?
254A. /usr/lib/systemd/user
255B. /usr/lib/systemd/system
256C. /usr/systemd
257D. /usr/system
258A. shim.uefi
259B. shim.efi
260C. shim.fx
261D. efi.shim
26256. Which directory on a SysV init-based system contains scripts that are used for starting and stopping services?
263A. /etc/rc.int
264B. /etc/boot
265C. /etc/bootscripts
266D. /etc/init.d
26757. Which of the following commands is used to find overriding configuration files on a systemd-based system?
268A. diff
269B. systemctl -diff
270C. systemd-delta
271D. systemctl configoverride
27258. 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?
273A. rlevel
274B. chkconfig --list
275C. bootldr --list
276D. init --bootlist
277A. bootcfg
278B. bcfg
279C. grub-install
280D. grcfg
28160. 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?
282A. pxelinux.tftp
283B. pxelinux.boot
284C. pxelinux.conf
285D. pxelinux.0
286A. bootorder
287B. bootloader
288C. configchk
289D. update-rc.d
290A. v
291B. e
292C. r
293D. y
29463. Which systemctl subcommand is used to switch runlevels?
295A. switch
296B. move
297C. runlevel
298D. isolate
299A. default
300B. defaultboot
301C. initdefault
302D. defaultlvl
30365. Which of the following is used instead of initrd to provide an early filesystem for essential drivers?
304A. initnext
305B. initramfs
306C. initialize
307D. initfs
30866. Which of the following commands sets the default systemd target to multi-user?
309A. systemctl set-default multi-user.target
310B. systemd set-default multi-user.target
311C. systemctl set-def muser.target
312D. systemd set-def muser.target
313A. grubx64.cfg
314B. grub.conf
315C. grubx64.efi
316D. efi.boot
31768. Within which hierarchy are files from /etc/init.d linked so that the files are executed during the various runlevels of a SysV system?
318A. /etc/rc.S
319B. /etc/rc
320C. /etc/boot/rc
321D. /etc/rc.d
32269. What is the name of the unit to which a systemd system is booted in order to start other levels?
323A. default.target
324B. init.target
325C. initial.target
326D. load.target
327A. /dev/fc0
328B. pci-0000:1a:00.0-fc-0x500601653ee0025f:0x0000000000000000
329C. pci-0000:1a:00.0-scsi-0x500601653ee0025f:0x0000000000000000
330D. /dev/fibre0
33171. 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?
332A. /dev/nd*
333B. /dev/nvme*
334C. /dev/nv*
335D. /dev/nvme/*
33672. Which file contains information about the current md Redundant Array of Inexpensive Disks (RAID) configuration such as the personalities?
337A. /proc/raidinfo
338B. /proc/rhyinfo
339C. /proc/mdraid
340D. /proc/mdstat
34173. Which of the following directory hierarchies contains information such as the World Wide Name (WWN) for Fibre Channel?
342A. /sys/class/wwn
343B. /sys/class/fc_host
344C. /sys/class/fclist
345D. /sys/class/fc/wwn
34674. Information about logical volumes can be found in which of the following directories?
347A. /dev/lvinfo
348B. /dev/map
349C. /dev/mapper
350D. /dev/lvmap
35175. Which of the following commands will examine the PCI subsystem for NVMe-based devices?
352A. psnvme
353B. lsnvme
354C. lspci | grep scsi
355D. lspci | grep -i nvme
35676. Which of the following devices is the location of the first Small Computer System Interface (SCSI) tape device detected at boot?
357A. /dev/st1
358B. /dev/sd0
359C. /dev/sd1
360D. /dev/st0
36177. Which of the following files should be used to display a message to users prior to logging in locally?
362A. /etc/loginmesg
363B. /etc/logmessage.txt
364C. /etc/issue
365D. /etc/banner
36678. Which file contains a message that is displayed after a successful login?
367A. /etc/loginbanner
368B. /etc/issue
369C. /etc/motd
370D. /etc/message
37179. Which of the following files can be used to provide a message to users logging in remotely with a protocol such as telnet?
372A. /etc/telnet.msg
373B. /etc/issue.net
374C. /etc/login.msg
375D. /etc/telnet.login
376A. systemctl halt
377B. systemctl reboot
378C. systemctl stop
379D. systemctl poweroff
38081. Which of the following shutdown commands reboots the system in 15 minutes?
381A. shutdown -r +15
382B. shutdown +15
383C. shutdown -15
384D. shutdown -r 00:15
385A. service
386B. sysv
387C. syscl
388D. servc
38983. Which of the following commands show the boot messages captured by systemd?
390A. journalctl -b
391B. systemctl -b
392C. journalctl -bm
393D. journalctl -l
39484. Which option to the shutdown command halts or stops the system?
395A. -h
396B. -s
397C. -f
398D. -t
39985. Which signal number is used as SIGKILL when used with the kill command?
400A. 1
401B. 4
402C. 9
403D. 11
40486. Which directory contains rc-related startup scripts on a legacy Debian system?
405A. /etc/init
406B. /etc/inittab
407C. /etc/init.d
408D. /etc/rc.init
409A. Examine boot messages to determine if the kernel has detected the peripheral.
410B. Examine /var/log/auth.log for detection of the peripheral.
411C. Reboot the system to determine if the device works.
412D. Enable the peripheral by removing it from the blacklisted modules.
413A. -b
414B. -a
415C. -n
416D. -d
417Chapter Topic 102: Linux
4181. A Serial Advanced Technology Attachment (SATA) disk will use which of the following identifiers?
419A. /dev/hdX
420B. /dev/sataX
421C. /dev/sdX
422D. /disk/sataX
4232. Which option given at boot time within the GRUB configuration will boot the system into single-user mode?
424A. single-user
425B. su
426C. single
427D. root
428A. Shift
429B. E
430C. V
431D. H
432B. root=/dev/sda2
433D. rootpartition=/dev/sda2
4345. Which key combination will enable you to edit the kernel options and then boot when using GRUB Legacy?
435A. ESC for editing and then Return to boot
436B. v for editing and then Return to boot
437C. e for editing and then b to boot
438D. v for editing and then b to boot
439A. The system BIOS initializes devices.
440B. The system is placed in multi-user mode.
441C. The boot loader initializes the kernel.
442D. The root partition is mounted.
4437. Where in the filesystem will the EFI system partition (ESP) typically be mounted?
444A. /etc/efi
445B. /efi
446C. /sys/efi
447D. /boot/efi
448A. /etc
449B. /usr/bin
450C. /mail
451D. /var
4529. Which option within GRUB Legacy is used to indicate that a root partition contains a non-Linux kernel?
453A. initrd
454B. non-linux
455C. rootnoverify
456D. root-win
45710. Which command will output a new GRUB2 configuration file and send the output to the correct location for booting?
458A. update-grub > /boot/grub/grub.cfg
459B. update-grub boot > /boot/grub.cfg
460C. grub-rc.d
461D. grub-boot
46211. What is the maximum number of primary partitions available on an MBR partitioning system?
463A. 2
464B. 4
465C. 1
466D. 5
46712. Which command is used to update the links and cache for shared libraries on the system?
468A. ldcache
469B. cache-update
470C. link-update
471D. ldconfig
47213. Which command and option is used to update a Debian system to the latest software?
473A. apt-update
474B. apt-get upgrade
475C. dpkg -U
476D. apt-cache clean
47714. Which option given to a yum command will install a given package?
478A. update
479B. configure
480C. install
481D. get
48215. What is the location of the home directory for the root user?
483A. /home/root
484B. /home/su
485C. /root
486D. /
487A. STDOUT
488B. The cpio.out file
489C. The a.out file
490D. The /tmp/cpi.out file
49117. Which partition or directory structure typically holds most of the programs for a Linux system?
492A. /etc
493B. /usr
494C. /home
495D. /var
49618. 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?
497A. default=linux
498B. default=0
499C. default=1
500D. default=other
50119. Which file should you edit when using GRUB2 in order to set things like the timeout?
502A. /etc/default/grub
503B. /etc/grub/boot
504C. /etc/boot/grub.d
505D. /grub.d/boot
50620. Which yum option displays the dependencies for the package specified?
507A. list
508B. deplist
509C. dependencies
510D. listdeps
51121. Which options for an rpm command will display verbose output for an installation along with progress of the installation?
512A. -ivh
513B. -wvh
514C. --avh
515D. --ins-verbose
51622. Which of the following commands adds /usr/local/lib to the LD_LIBRARY_PATH when using BASH shell?
517A. set PATH=/usr/local/lib
518B. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
519C. LD_LIBRARY_PATH=/usr/local/lib
520D. connectpath LD_LIBRARY_PATH=/usr/local/lib
52123. Which command can be used to download an RPM package without installing it?
522A. yumdl
523B. yumdownloadonly
524C. yumdown
525D. yumdownloader
52624. Which command will search for a package named zsh on a Debian system?
527A. apt-cache search zsh
528B. apt-get search zsh
529C. apt-cache locate zsh
530D. apt search zsh
53125. Which option within /etc/default/grub is used to configure the default operating system for boot?
532A. GRUB_OS
533B. GRUB_ON
534C. GRUB_DEFAULT
535D. DEFAULT_OS
536A. Initially mount the root partition as read-only.
537B. Mount the kernel as read-only.
538C. Start the init program as read-once.
539D. Mount the root partition in Raised Object mode.
54027. Within which directory will you find the repositories used by yum?
541A. /etc/yum.conf
542B. /etc/repos
543C. /etc/yum.conf.d
544D. /etc/yum.repos.d
54528. Which rpm option can be used to verify that no files have been altered since installation?
546A. -V
547B. -v
548C. --verbose
549D. --filesum
55029. Which option for the grub-mkconfig command sends output to a file instead of STDOUT?
551A. -stdout
552B. --fileout
553C. -o
554D. -f
55530. The presence of menu.lst within the filesystem typically indicates which condition?
556A. GRUB Legacy is in use on the system.
557B. GRUB2 is in use on the system.
558C. An error has occurred creating the output to menu.lst.
559D. The options for rescue boot have been changed.
56031. Which command is used to determine the libraries on which a given command depends?
561A. ldconfig
562B. librarylist
563C. listdeps
564D. ldd
56532. Which of the following is true of Linux swap space?
566A. Swap is used to hold temporary database tables.
567B. Swap is used as additional memory when there is insufficient RAM.
568C. Swap is used by the mail server for security.
569D. Swap is used to scrub data from the network temporarily.
57033. Which of the following is not typically used to store libraries?
571A. /lib
572B. /etc/lib
573C. /usr/lib
574D. /usr/local/lib
57534. Which of the following commands updates the package cache for a Debian system?
576A. apt-get cache-update
577B. apt-cache update
578C. apt-get update
579D. apt-get upgrade
58035. Within which file are details of the current package repositories stored on a Debian system?
581A. /etc/apt.list
582B. /etc/sources.list
583C. /etc/apt/sources.list
584D. /etc/apt.d/sources.list
585A. Between 100MB and 500MB
586B. Between 1GB and 10GB
587C. /boot should not be partitioned separately.
588D. Less than 5MB
58937. Which of the following commands initializes a physical disk partition for use with Logical Volume Manager (LVM)?
590A. lvmcreate
591B. pvcreate
592C. fvcreate
593D. lvinit
59438. Which of the following commands installs GRUB into the MBR of the second SATA disk?
595A. grub-install /dev/hdb2
596B. grub-install /dev/sda2
597C. grub-config /dev/sda
598D. grub-install /dev/sdb
59939. Which command should be used to make changes to the choices made when a Debian package was installed?
600A. dpkg-reconfigure
601B. dpkg -r
602C. dpkg --reconf
603D. apt-get reinstall
60440. Which command is used to create a logical volume with LVM?
605A. pvcreate
606B. lvmcreate
607C. lvcreate
608D. volcreate
60941. What is the logical order for creation of an LVM logical volume?
61042. Which of the Debian package management tools provides a terminal-based interface for management?
611A. apt-get
612B. dpkg
613C. apt-cache
614D. aptitude
61543. Which option for yum performs a search of the package cache?
616A. seek
617B. query
618C. --search
619D. search
62044. Which command option for rpm can be used to show the version of the kernel?
621A. rpm kernel
622B. rpm -qa kernel
623C. rpm search kernel
624D. rpm --list kern
625A. GRUB_OS
626B. GRUB_OS_DEF
627C. GRUB_DEFAULT
628D. GRUB_CONF
62946. Which option in /etc/yum.conf is used to ensure that the kernel is not updated when the system is updated?
630A. exclude=kernel*
631B. exclude-kernel
632C. updatekernel=false
633D. include-except=kernel
63447. Which command should be run after making a change to the /etc/default/grub file?
635A. grub
636B. grub-mkconfig
637C. grub-inst
638D. reboot
639A. dpkg -i
640B. dpkg -s
641C. apt-cache
642D. apt-info
64349. Which command is used to search for physical volumes for use with LVM?
644A. lvmcreate
645B. pvcreate
646C. lvmdiskscan
647D. lvmscan
64850. Which option added to yumdownloader will also download dependencies?
649A. --deps
650B. --resolve
651C. --resdeps
652D. -d
65351. Which of the following installs a previously downloaded Debian package?
654A. dpkg -i <package name>
655B. apt-install <package name>
656C. apt-slash <package name>
657D. dpkg -U <package name>
658A. /dev/hdb2
659B. /dev/hda0
660C. /dev/disk1
661D. /dev/sda1
66253. Which filesystem format type is used for the EFI System Partition (ESP)?
663A. FAT
664B. EXT4
665C. NTFS
666D. EXT3
66754. Which of the following commands installs extlinux into the /boot partition?
668A. extlinux --install /boot
669B. extlinux --inst /boot
670C. extlinux -boot
671D. extlinux /boot install
67255. Which of the following commands mounts /dev/sda1 in the /boot partition?
673A. mount /dev/sda /boot
674B. mount /boot /dev/sda1
675C. mount /dev/sda1 /boot
676D. mount -dev sda1 /boot
67756. 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?
678A. Minimal boot record (MBR)
679B. Master boot record (MBR)
680C. Init sector
681D. Master partition table (MPT)
68257. Which option to grub-install will place the GRUB images into an alternate directory?
683A. --boot-dir
684B. -b
685C. -boot
686D. --boot-directory
68758. Within which file is a list of the currently mounted filesystems stored?
688A. /etc/fstab
689B. /etc/curmount
690C. /var/spool/files
691D. /etc/mtab
69259. Which command is used to activate swap space on a system?
693A. mkswap
694B. swapon
695C. swapact
696D. actswap
69760. Which of the following commands displays information about a given physical volume in an LVM setup?
698A. pvdisp
699B. pvlist
700C. pvdisplay
701D. pvl
70261. Which of the following commands creates a logical volume with LVM?
703A. lvc
704B. lvcreate
705C. lvlist
706D. lvmake
70762. Which of the following commands looks for LVM physical volumes and volume groups involved in an LVM configuration?
708A. vgscan
709B. lvmscan
710C. lvlist
711D. pvlist
71263. Which of the following commands is used to display a list of physical volumes involved in LVM?
713A. pvdisp
714B. pvlist
715C. pvscan
716D. pvmm
71764. Which option to lvchange sets whether the logical volume is available?
718A. -a
719B. -b
720C. -c
721D. -d
722A. The script is not executable.
723B. The script does not have the setuid bit set.
724C. The script is using a relative path.
725D. The script is owned by root.
72666. 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?
727A. An application container can contain only one application whereas a virtual machine can contain many.
728B. An application container shares the host kernel whereas a virtual machine can have its own kernel.
729C. An application container is used for small applications whereas a virtual machine is used for large applications.
730D. The use of application containers is for testing only whereas a virtual machine is used for production.
731A. /etc/lib.conf
732B. /etc/ldconf
733C. /etc/lib.cfg
734D. /etc/ld.so.conf
73568. 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?
736A. Compute
737B. Block storage
738C. Networking
739D. Disk
740A. grub.cfg
741B. grub.conf
742C. menu.lst
743D. grub2.conf
74470. 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?
745A. System directories
746B. MAC address
747C. Guest drivers
748D. Pilot homing
74971. Which program can be used to deploy an Ubuntu image to a remote cloud provider?
750A. dep-image
751B. cloud-init
752C. init-cloud
753D. image-dep
75472. Which file is used as the primary configuration file for the yum package manager?
755A. /etc/yum.cfg
756B. /etc/yum.d
757C. /etc/yum.conf
758D. /etc/yum.config
75973. Which of the following commands and options lists all of the files included with a package on a Debian system?
760A. apt -L
761B. dpkg -L
762C. dpkg -f
763D. apt-get show
764A. The public key
765B. The signature file
766C. The private key
767D. Both the public and private keys
768A. /boot/efi
769B. /boot/gpt
770C. /gpt
771D. /vmgpt
77276. Which option to zypper installs a package?
773A. install
774B. retr
775C. get
776D. ref
77777. 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?
778A. yum
779B. apt
780C. dpkg
781D. dnf
78278. You need to list the files available on a package on CentOS. Which of the following commands accomplishes this task?
783A. repoquery -l
784B. pkgquery -l
785C. dpkg -L
786D. pkglist
78779. You need to create a backup of user home directories including root. Which directory or directories need to be included in the backup?
788A. /home
789B. /home and /home/root
790C. /home and /root
791D. /home and /root/home
79280. In which file can you find the unique D-Bus machine ID for a given system?
793A. /etc/machine-id
794B. /etc/machineID
795C. /etc/mch.conf
796D. /etc/machine.id.conf
79781. 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?
798A. -n
799B. -i
800C. -v
801D. -r
802A. packagenum
803B. status
804C. stats
805D. liststatus
80683. Which option to grub-install specifies the directory in which the EFI partition is located?
807A. --boot-dir
808B. --efi
809C. --efi-boot
810D. --efi-directory
81184. Within which file are mount points for the system stored?
812A. /etc/fstab
813B. /etc/mtab
814C. /etc/partitions.list
815D. /etc/disk.conf
81685. Which of the following option sets for rpm lists the files within the package?
817A. lf
818B. qlp
819C. qf
820D. eps
821A. dpkg -i
822B. yum info
823C. yum search
824D. apt search
82587. 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?
826A. vmx
827B. virt
828C. envirt
829D. vtcapable
83088. Within which file can you configure a filter for devices when using vgscan?
831A. lvm.conf
832B. vg.conf
833C. vgscan.conf
834D. lv.cfg
83589. Which of the following swapon options displays information on the size of swap space along with its used space?
836A. --list
837B. -a
838C. --show
839D. -h
840Chapter Topic 103: GNU and UNIX Commands
8411. 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?
842A. setoutput -f
843B. overwrite=no
844C. overwrite -n
845D. set -C
8462. What command can be used to view the current settings for your environment when using Bash?
847A. environment
848B. env
849C. listenv
850D. echoenv
8513. Which command is used to access documentation on the Linux computer for a given command?
852A. doc
853B. heredoc
854C. man
855D. manual
856A. info --sys
857B. man sys
858C. sysinfo
859D. uname -a
860A. g
861B. a
862C. r
863D. y
8646. Which option for the wc command prints the number of lines given as input?
865A. -f
866B. -a
867C. -l
868D. -o
869C. 10 for both head and tail
870D. 3 for both head and tail
871A. rm -f
872B. rm -rf
873C. rmdir -a
874D. rmdir -m
8759. Which command will find directories with names beginning with 2014 located beneath the current directory?
87610. Which of the following commands will provide the usernames in a sorted list gathered from the /etc/passwd file?
877A. cat /etc/passwd | awk -F : '{print $1}' | sort
878B. sort /etc/passwd | cut
879C. echo /etc/passwd
880D. cat /etc/passwd | awk '{print $1}' | sort
881A. -la
882B. -lat
883C. -latr
884D. -ltr
88512. What will be the result if the touch command is executed on a file that already exists?
886A. The access time stamp of the file will change to the current time when the touch command was executed.
887B. The file will be overwritten.
888C. There will be no change.
889D. The file will be appended to.
89013. Which option to both mv and cp will cause the command to prompt before overwriting files that already exist?
891A. -f
892B. -Z
893C. -r
894D. -i
89514. Which of the following commands will send the contents of /etc/passwd to both STDOUT and to a file called passwordfile?
896A. cat /etc/passwd > passwordfile
897B. var /etc/passwd | passwordfile
898C. cat /etc/passwd | tee passwordfile
899D. echo /etc/passwd | stdout > passwordfile
90015. 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?
901A. mkdir -p /usr/local/test/october
902B. mkdir /usr/local/test/october
903C. mkdir -r /usr/local/test/october
904D. mkdir -f /usr/local/test/october
90516. Which option to the cp command will copy directories in a recursive manner?
906A. -v
907B. -R
908C. -Z
909D. -i
91017. 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?
911A. grep
912B. telnet
913C. file
914D. export
91518. Which command will create an image of the /dev/sda1 disk partition and place that image into a file called output.img?
916A. dd if=sda of=/dev/sda1
917B. dd if=output.img of=/dev/sda1
918C. dd if=/dev/sda1 of=output.img
919D. echo /dev/sda1 > output.img
92019. What is the default delimiter used by the cut command?
921A. Colon
922B. Tab
923C. Space
924D. Comma
92520. Which of the following will unzip and extract the contents of a file that has been tarred and gzipped?
926A. tar -zxf <file.tgz>
927B. tar -xf <file.tgz>
928C. tar -vz <file.tgz>
929D. tar -fd <file.tgz>
93021. What command is used to bring a command to foreground processing after it has been backgrounded with an &?
931A. bg
932B. fore
933C. 4g
934D. fg
93522. 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?
936A. ps auwx | grep apache
937B. pgrep apache
938C. processlist apache
939D. ls -p apache
94023. Which of the following command lines would monitor a single process called nagios in a continuous manner?
941A. top -n 1
942B. top -p 23
943C. ps -nagios
944D. top -p`pidof nagios`
945A. tree
946B. pgrep
947C. uptime
948D. free
949A. :wq
950B. :q!
951C. dd
952D. x
95326. What option is used to change the number of lines of output for the head and tail commands?
954A. -l
955B. -f
956C. -g
957D. -n
95827. 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?
959A. uptime
960B. sysinfo
961C. bash
962D. ls -u
963A. fg
964B. bg
965C. kill
966D. screen
96729. 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?
968A. -15
969B. -f
970C. -9
971D. -stop
972A. 1>2
973B. >2
974C. 2>&1
975D. >>
97631. Which command can be run to determine the default priority for processes spawned by the current user?
977A. prio
978B. nice
979C. renice
980D. defpriority
98132. 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?
982A. grep sh /etc/passwd
983B. egrep '/*/.sh$' /etc/passwd
984C. grep '/*/.=sh$' /etc/passwd
985D. egrep '/*/..?sh$' /etc/passwd
986A. man 2 <argument>
987B. progman <argument>
988C. man --sys <argument>
989D. man --list sys
990A. f
991B. a
992C. o
993D. i
99435. Which kill signal can be sent in order to restart a process?
995A. -HUP
996B. -RESTART
997C. -9
998D. -SIG
999A. bashhist 50
1000B. history 50
1001C. cat .bash_history
1002D. tail -f .bash_history
100337. You have backgrounded several tasks using &. Which command can be used to view the current list of running tasks that have been backgrounded?
1004A. procs
1005B. plist
1006C. jobs
1007D. free
100838. Which of the following commands searches each users .bash_history file to determine whether the user has invoked the sudo command?
1009C. find /home/.bash_history | xargs grep sudo
1010D. find /home -type history | xargs grep sudo
101139. Which command will watch the Apache log at /var/log/httpd/access.log and continually scroll as new log entries are created?
1012A. watch /var/log/httpd/access.log
1013B. tail /var/log/httpd/access.log
1014C. tail -f /var/log/httpd/access.log
1015D. mon /var/log/httpd/access.log
101640. 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?
1017A. lines
1018B. wc -l
1019C. newline
1020D. nl
102141. You receive a file with an .lzma extension. Which command can you use to decompress this file?
1022A. xz
1023B. lz
1024C. gz
1025D. bzip
102642. Which find command will locate files within the current directory that have been modified within the last 24 hours?
1027A. find ./ -type f -mtime 0
1028B. find ./ -type f -mtime 24
1029C. find ./ -type f -mtime +1
1030D. find ./ type -f time 24
103143. Which command will move all files with a .txt extension to the /tmp directory?
1032A. mv txt* tmp
1033B. move *txt /temp
1034C. mv *.txt /tmp
1035D. mv *.txt tmp
103644. Which command prints your current directory?
1037A. cwd
1038B. curdur
1039C. cd
1040D. pwd
104145. 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?
1042A. sort zips.txt | uniq -c
1043B. uniq zips.txt
1044C. count zips.txt
1045D. cat zips.txt | uniq -c
1046A. Precede the command with ! and then the string to search for.
1047B. Search for the command in history.
1048C. Precede the command with a ? and then the string to search for.
1049D. This is not possible with Bash.
105047. Which command can be used to kill all processes by using their name?
1051A. killproc
1052B. killname
1053C. killall
1054D. kill -f
105548. 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?
1056A. /
1057B. h
1058C. ?
1059D. x
106049. You need to declare a local environment variable that will then be available to child processes. Which of the following commands accomplishes this task?
1061A. ex
1062B. echo
1063C. dec
1064D. export
106550. 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?
1066A. cat <CMD>
1067B. echo $0
1068C. echo $SCRIPT
1069D. echo $PS1
107051. You have downloaded a file with a .gz extension. What is the most likely command that you will use to decompress this file?
1071A. unz
1072B. gunzip
1073C. hunzip
1074D. gzunzip
107552. 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?
1076A. -a
1077B. -e
1078C. -i
1079D. -o
108053. You need to determine files that are sized above 1GB. Which of the following commands accomplishes this task?
1081A. find / -size +1G
1082B. find / -size 10000M
1083C. find / +1M
1084D. find / -size +1B
108554. Which option to cpio lists the files as it is operating on them?
1086A. -l
1087B. -v
1088C. -k
1089D. -s
109055. Which command is used to send contents of a bzip2 archive to STDOUT?
1091A. bzout
1092B. bzcat
1093C. bz2cat
1094D. bz2echo
1095A. jbs
1096B. procctl
1097C. bash
1098D. ps
109957. 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?
1100A. nosig
1101B. nohup
1102C. nokill
1103D. noproc
110458. You need to run a command periodically and examine its output in real time. Which of the following commands enables this scenario?
1105A. mon
1106B. procmon
1107C. pgrep
1108D. watch
1109A. screen
1110B. tmux
1111C. sess
1112D. termse
1113A. pkill
1114B. psk
1115C. pskill
1116D. prock
1117A. -f
1118B. -d
1119C. -o
1120D. -i
112162. You need to determine the exact command that will be run based on your current environment settings. Which command is used for this purpose?
1122A. what
1123B. which
1124C. find
1125D. ls
1126A. reset
1127B. unset
1128C. undo
1129D. clear
1130A. type
1131B. cmd
1132C. uses
1133D. listr
113465. Which type of quotes are used so that variables are interpolated within a Bash shell script?
1135A. Escaped quotes
1136B. Single quotes
1137C. Double quotes
1138D. Side quotes
1139A. more
1140B. mplus
1141C. less
1142D. catch
114367. You have a specialized need for outputting a file in octal format. Which command or series of commands can be used for this purpose?
1144A. oct
1145B. cat <file> | octalf
1146C. od
1147D. octf
114868. Which option to sha256sum causes the file to be read in binary mode?
1149A. -i
1150B. -b
1151C. -c
1152D. -p
115370. Which options to xz are functionally equivalent to the xzcat program?
1154A. decompress and output
1155B. output and format
1156C. decompress and stdout
1157D. stdout and format
115871. Which environment variable is used to control the default text editor used on a Linux system?
1159A. EDITOR
1160B. EDIT
1161C. TEXTEDITOR
1162D. DEFAULT_EDITOR
1163A. man regex -7
1164B. man regex 7
1165C. man --page 7 regex
1166D. man 7 regex
116773. Which of the following commands reprioritizes an already running process?
1168A. nice
1169B. renice
1170C. chnice
1171D. altnice
117274. The fgrep command is equivalent to running the grep command with which option?
1173A. -f
1174B. -F
1175C. -a
1176D. -E
117775. Which of the following regular expressions would find the pattern Steve or steve in a file when used with grep?
1178A. '[sS]teve'
1179B. '[S]*teve'
1180C. '^[Ss]teve'
1181D. '[$Steve]'
1182A. nice
1183B. ps
1184C. top
1185D. procs
118677. 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?
1187A. gzip
1188B. bzip2
1189C. xz
1190D. tar
1191A. 201?
1192B. 201$
1193C. 201@
1194D. 201]
119579. You need to break a large file into smaller pieces. Which command can be used for this purpose?
1196A. cut
1197B. split
1198C. dice
1199D. rem
1200A. The process ID
1201B. The process utilization
1202C. The process priority
1203D. The processor core on which the process is executing
120481. You need to cut or remove eight lines from a file while editing with Vi. Which combination should be used for this purpose?
1205A. d7
1206B. d8
1207C. r8
1208D. x7
120982. Which command is used in order to decompress a file that has been compressed with xz?
1210A. unxz
1211B. dexz
1212C. xzu
1213D. u2xz
121483. Which of the following commands uses 128-bit message digests?
1215A. sha256sum
1216B. sha512sum
1217C. sh128sum
1218D. md5sum
1219A. paste
1220B. comb
1221C. appfile
1222D. combo
122385. You need to run a command that is not inside your current path. Which of the following represents the typical method for doing so?
1224A. Use a fully qualified path for the command.
1225B. Set the PATH environment variable to include the correct path.
1226C. Restart the shell environment.
1227D. Restart the computer for settings to take effect.
122886. Which signal is used by default by the pkill command?
1229A. SIGKILL
1230B. SIGTERM
1231C. SIGHUP
1232D. SIGKS
123387. 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?
1234A. -s
1235B. -a
1236C. -l
1237D. -r
1238A. -s
1239B. -o
1240C. -c
1241D. -d
12421. Which option best describes the following output from the ls -la command: lrwxrwxrwx. 1 root root 35 Jul 8 2014 .fetchmailrc -> .configs/fetchmail/.fetchmailrc?
1243A. It is a file called .fetchmailrc that is linked using a symbolic link.
1244B. It is a file called .configs/fetchmail/.fetchmailrc that is owned by lrwxrwxrwx.
1245C. It is a directory called .fetchmailrc that is owned by user Jul.
1246D. It is a local directory called .configs/fetchmail/.fetchmailrc.
1247A. mount /dev/sdb1 /media/usb
1248B. usbconnect /dev/sdb0 /media/usb
1249C. mount /dev/sdb0 /media/usb
1250D. usbmount /dev/sdb1 /media/usb
12513. Which option within a partition-mounting command will cause the partition to be mounted in such a way as to prevent execution of programs?
1252A. execless
1253B. stoprun
1254C. noexec
1255D. norun
1256A. Linux
1257B. Linux swap
1258C. NTFS
1259D. FAT
1260A. 82
1261B. 83
1262C. 84
1263D. L
12646. 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?
1265A. which
1266B. what
1267C. whatis
1268D. when
12697. Which of the following commands will correctly change the group ownership of the file called a.out to users?
1270A. chgrp users a.out
1271B. chgrp a.out users
1272C. groupchg a.out users
1273D. grpchg users a.out
1274A. The file was executed after edit.
1275B. The administrator copied the file to yours.
1276C. Your file is a hard link to the original.
1277D. The file has been restored from backup.
12789. Which of the following commands shows the usage of inodes across all filesystems?
1279A. df -i
1280B. ls -i
1281C. du -i
1282D. dm -i
1283A. -o
1284B. -V
1285C. -y
1286D. -f
128711. Which of the following describes a primary difference between ext2 and ext3 filesystems?
1288A. ext3 was primarily a bug fix update to ext2.
1289B. ext3 includes journaling for the filesystem.
1290C. ext3 completely changed the tools needed for management of the disks.
1291D. ext3 filesystems have no significant differences.
129212. Which option to umask will display the permissions to be used in a Portable Operating System Interface (POSIX) format?
1293A. -P
1294B. -p
1295C. -S
1296D. -v
129713. Which option to ln creates a symlink to another file?
1298A. -sl
1299B. -s
1300C. -l
1301D. --ln
1302A. whatis
1303B. find
1304C. whereis
1305D. ls
130615. Which option in /etc/updatedb.conf will remove a path from inclusion in the results?
1307A. PRUNEPATHS
1308B. EXCLUDEPATHS
1309C. INCLUDEEXCLUDE
1310D. SEPARATEPATH
1311A. /etc
1312B. /var
1313C. /tmp
1314D. /srv
131517. Which of the following commands enables the sticky bit for a user on a file called homescript.sh?
1316A. chmod +sticky homescript.sh
1317B. chmod 755 homescript.sh
1318C. chmod u+s homescript.sh
1319D. chown u+sticky homescript.sh
132018. Which option to the mount command will mount all filesystems that are currently available in /etc/fstab?
1321A. -g
1322B. -a
1323C. -r
1324D. -y
132519. Which command is used to format a swap partition?
1326A. fdisk
1327B. mkswap
1328C. formatswap
1329D. format -s
133020. Which command and option is used to display the number of times that a filesystem has been mounted?
1331A. tune2fs -l
1332B. cat /etc/fstab
1333C. mount -a
1334D. less /etc/fsmnt
133521. Which option to xfs_metadump displays a progress indicator?
1336A. -g
1337B. -p
1338C. -f
1339D. -v
134022. 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?
1341A. du
1342B. df
1343C. ls
1344D. locate
1345A. /etc/filesystems
1346B. /etc/mounts
1347C. /etc/fstab
1348D. /srv/mounts
1349A. /etc
1350B. /srv
1351C. /tmp
1352D. /media
1353A. /etc/mtab
1354B. /etc/fstab
1355C. /tmp/files
1356D. /etc/filesystems
135726. Which option to umount will cause the command to attempt to remount the filesystem in read-only mode if the unmounting process fails?
1358A. -o
1359B. -r
1360C. -f
1361D. -v
136227. The umask reports as 022. What is the permission that will be in effect for a newly nonexecutable created file?
1363B. 755
1364C. 022
1365D. a+r
136628. The locate command is reporting out-of-date information. Which command should be run in order to have the locate command update its database?
1367A. locatedb -u
1368B. locate -u
1369C. updatedb
1370D. updatelocate
137129. Which shell built-in command can be used to determine what command will be run?
1372A. type
1373B. when
1374C. find
1375D. help
137630. Which option to chown recursively changes the ownership?
1377A. -f
1378B. -R
1379C. -a
1380D. -m
138131. Which of the following represents the correct format for the /etc/fstab file?
1382A. <directory> <device> <type> <options>
1383B. <device> <type> <options>
1384C. <device> <type> <options> <directory> <dump> <fsck>
1385D. <filesystem> <mount point> <type> <options> <dump> <pass>
138632. Which of the following commands is used to identify the UUID for partitions?
1387A. blkid
1388B. ls
1389C. find
1390D. cat
139133. Which of the following describes the priority order for configuration files with systemd?
139234. Which options to the fsck command will find and automatically assume that it should repair errors that it finds?
1393A. -y
1394B. -vy
1395C. -my
1396D. -xy
139735. Which option to mke2fs sets the type of filesystem to be created?
1398A. -F
1399B. -a
1400C. -t
1401D. -e
140236. Which of the following files is the default configuration file for the autofs automounter?
1403A. /etc/autofs
1404B. /etc/auto.master
1405C. /etc/autofs.conf
1406D. /etc/automounter.conf
140737. Which of the following commands is used to create an ISO filesystem?
1408A. mkiso
1409B. mkfsiso
1410C. mkisofs
1411D. isofs-mk
141238. Which option to the tune2fs command sets the maximum mount count before the system will automatically run fsck on the partition on boot?
1413A. -b
1414B. -c
1415C. -C
1416D. -a
141739. Which option to the mount command can be used to simulate the mount process without actually mounting the filesystem?
1418A. -q
1419B. -v
1420C. -l
1421D. -f
1422A. relative option
1423B. realtime option
1424C. read-only
1425D. relative-only
142641. Which option to dumpe2fs displays the bad blocks for a given partition?
1427A. -bb
1428B. -C
1429C. -b
1430D. -f
143142. Which of the following filesystem types features copy-on-write?
1432A. ext3
1433B. ext4
1434C. FAT
1435D. Btrfs
143643. Which of the following commands displays filesystem geometry for an XFS filesystem?
1437A. xfsinfo
1438B. xfs_info
1439C. xfs -info
1440D. xfs --info
144144. Which of the following commands can be used to display information such as the UUID for partitions on a system?
1442A. blkid
1443B. blockdev
1444C. devinfo
1445D. uuidinfo
144645. Which option to the umount command will cause it to unmount only filesystems of the specified type?
1447A. -v
1448B. -f
1449C. -t
1450D. -a
145146. Which command causes unwritten data to be written to disk immediately?
1452A. write
1453B. wrnow
1454C. connwrite
1455D. sync
145647. Which option to xfs_check is used to verify a filesystem that is stored in a file?
1457A. -v
1458B. -a
1459C. -f
1460D. -d
146148. Which option to debugfs causes the filesystem to be opened in read-write mode rather than the default read-only?
1462A. -rw
1463B. -w
1464C. -r
1465D. -n
1466A. smartmon
1467B. smarty
1468C. sartd
1469D. smartd
1470A. f
1471B. -m
1472C. -a
1473D. -c
147451. 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?
1475A. -b 4M
1476B. -g 1M
1477C. -i 1M
1478D. -k 1028K
147952. You see the word defaults within /etc/fstab. Which options are encompassed within the defaults?
148053. Which of the following commands creates a btrfs subvolume?
1481A. btrfs create subvolume
1482B. btrfs subvolume create
1483C. btrfs sv create
1484D. btrfs svcreate
148554. Which of the following options to xfsdump sets the maximum size for files to be included in the dump?
1486A. -p
1487B. -s
1488C. -z
1489D. -b
149055. Which option to the tune2fs command sets the behavior when a filesystem error occurs?
1491A. -f
1492B. -d
1493C. -e
1494D. -k
149556. 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?
1496A. -a
1497B. -m
1498C. -b
1499D. -n
150057. Which of the following commands deactivates swap space?
1501A. swapoff
1502B. swap -off
1503C. unmountswap
1504D. uswap
1505A. Where=
1506B. Location=
1507C. List=
1508D. Dest=
150959. Which of the following commands can be used to format a FAT filesystem?
1510A. mkfs.fat
1511B. mkfs -f
1512C. mkfs --fat
1513D. mkfat
151460. Which of the following commands adds a journal to an existing ext2 filesystem?
1515A. tune2fs -jrn
1516B. e2fs -x
1517C. tune3fs
1518D. tune2fs -j
151961. Which of the following commands creates a snapshot of a btrfs subvolume?
1520A. btrfs subvolume snapshot
1521B. btrfs snapshot --create
1522C. btrfs create snapshot
1523D. btrfs --create
152462. Which option to xfs_repair will force log zeroing even if there may be metadata within the log?
1525A. -L
1526B. -v
1527C. -d
1528D. -V
152963. Which of the following commands mounts a filesystem in read-only mode?
1530A. mount read-only
1531B. mount --read
1532C. mount -o ro
1533D. mount -or
1534A. -extend
1535B. -E
1536C. -e
1537D. -f
153865. Which utility is used for formatting GPT disks?
1539A. gdisk
1540B. gptdisk
1541C. gpdisk
1542D. pgdisk
154366. What is the maximum size of a partition on an MBR-formatted disk?
1544A. 2TB
1545B. 4TB
1546C. 2MB
1547D. 512TB
154867. Which option to mkfs.ext4 can be used to prevent reservation of blocks for system or
1549superuser use?
1550A. -r 0
1551B. -r 0b
1552C. -m 0
1553D. -m 0b
155468. What is the default time in seconds that xfs_fsr will use to reorganize a filesystem?
1555A. 3600
1556B. 7200
1557C. 86400
1558D. 5150
1559A. Grant root access to the user.
1560B. Run chmod 777 on the file.
1561C. Use chgrp to change group ownership to admins.
1562D. Use chown to change the ownership of the file to the individual user.
156370. Which option to lsblk shows empty devices?
1564A. -g
1565B. -a
1566C. -r
1567D. -y
156871. The /media/ mount point is used frequently for which types of devices?
1569A. Hard drives
1570B. SAN
1571C. NAS
1572D. USB devices
157372. Which of the following commands is used to format an exFAT filesystem?
1574A. mkexfat
1575B. mkfat.ex
1576C. mkfs.exfat
1577D. mkfs2.exf
157873. Which of the following commands is used for debugging an XFS-formatted filesystem?
1579A. debug_xfs
1580B. xfs_debug
1581C. xfs_db
1582D. debugxfs
158374. 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?
1584A. -B
1585B. -s
1586C. -b
1587D. -o
1588A. -h
1589B. -m
1590C. -n
1591D. -s
1592A. /etc/umask.def
1593B. /etc/profile
1594C. /etc/bash.d/umask
1595D. /etc/bash.umask
1596A. A symbolic link is not appropriate because the users cannot keep their own changes. A copy would be a better option.
1597C. A symbolic link is not appropriate given that the users will not have permissions on symbolic links. Linux cannot meet the scenario described.
159878. 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?
1599A. locate <user>
1600B. find -uid <uid>
1601C. find -user <user>
1602D. fileloc -user <user>
160379. You need to update the locate database. Which of the following commands is used for this purpose?
1604A. updatedb
1605B. locatedb
1606C. updlocdb
1607D. locdbupd
160880. Which option to lsblk shows the UUID of each filesystem?
1609A. u
1610B. -f
1611C. -o
1612D. -a
161381. Which option to mkswap checks the device for bad blocks before formatting?
1614A. -b
1615B. -B
1616C. -c
1617D. -d
161882. You are examining output from ls -la and one file contains the permissions -rwSrw-r--. To what does the S refer?
1619A. Specific execute
1620B. Source formatting
1621C. Selective execution
1622D. Sticky bit
162383. 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?
1624A. chmod 2775 sync.sh
1625B. chmod u+s sync.sh
1626C. chmod 2755 sync.sh
1627D. chmod 4755 sync.sh
162884. Which of the following commands finds files with a .sql extension across the entire filesystem?
1629B. find /root -ext sql
1630A. <UUID>
1631B. UUID=<UUID>
1632C. ID=<UUID>
1633D. GPT=<UUID>
163486. Which option to du displays information on inode usage?
1635A. -i
1636B. -h
1637C. --inodes
1638D. -d
163987. Which of the following find commands will look for files that are over 1GB in size?
1640A. find -size +1G
1641B. find -size 1GB
1642C. find -fssize +1GB
1643D. find -filesize +1G
164488. 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?
1645A. Copy the libraries.
1646B. Create a symbolic link.
1647C. Move the libraries.
1648D. Create a script to synchronize the libraries between the two locations with rsync.