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