LPIC Exam 101-500 - System Architecture

 

  Take the test here (You need an account. It's free)

 

1.    Which of the following commands is used to view kernel-related udev events in real time?
A.    udevls all
B.    Isudev -f
C.    udevmon -a
D.    udevadm monitor

D. The udevadm command is used to work with the udev interface of the kernel, and the monitor subcommand displays kernel uevents and other udev events in real time.

 

2.    Which command enables you to view the current interrupt request(IRQ) assignments?
A.    view /proc/irq
B.    cat /proc/interrupts
C.    cat /dev/irq
D.    less /dev/irq

B. Current IRQ assignments are contained in the file /proc/interrupts. Therefore, viewing the contents of the file with a command such as cat will work. There is no “view” command, making option A incorrect. Likewise, there is no /dev/irq file, making options C and D incorrect.


3.    Configuration of udev devices is done by working with files in which directory?
A.    /udev/devices
B.    /devices/
C.    /udev/config
D.    /etc/udev

D. Configuration files for udev are found in /etc/udev, which makes option D correct. The other options do not exist.


4.    Which command is used to automatically load a module and its dependencies?
A.    modprobe
B.    lsmod
C.    insmod
D.    rmmod

A. The modprobe command loads the module and its dependencies, if applicable. The ismod command is used to list currently  loaded modules, making option B incorrect. The insmod command will load a given module but not its dependencies. Option D, rmmod, is used to remove a module from memory.


5.    Which command is used to obtain a list of USB devices?
A.    usb-list
B.    lsusb
C.    Is-usb
D.    Is -usb

B. The lsusb command is used to obtain a basic list of USB devices on a system. The other commands are not valid. In the case of option D, the is command is valid, but there is no -usb option.


6.    When working with hotplug devices, you need to gather more information about them through udevadm. Which udevadm command enables you to query the udev database for information on a device?
A.    query
B.    info
C.    getinfo
D.    devinfo

B. The info command for udevadm enables querying for additional information about a hotplug device managed with udev.


7.    Which command can be used to view the kernel ring buffer in order to troubleshoot the boot process?
A.    lsboot
B.    boot-log
C.    krblog
D.    dmesg

D. The dmesg command displays the contents of the kernel ring buffer. On many Linux distributions, this log is also saved to /var/log/dmesg. The other options shown for this question are not valid commands.


8.    During the initialization process for a Linux system using SysVinit, which runlevel corresponds to single-user mode?
A.    Runlevel 5
B.    Runlevel SU
C.    Runlevel 1
D.    Runlevel 6

C. Runlevel 1, sometimes displayed as runlevel s or S, is single- user mode in which many services are not started. Runlevels 5 and 6 are used for other purposes, and runlevel SU is not a valid option.


9.    On a system using SysV init, in which directory are the startup and shutdown scripts for services stored?
A.    /etc/init-d
B.    /etc/init
C.    /etc/sysV
D.    /etc/init.d

D. Scripts are stored in /etc/init .d on a system using SysV init.You may sometimes find these linked from /etc/rc.d/init.d as well. The other options are not valid for this question.


10.    Which command can be used to reboot a system?
A.    init 6
B.    shutdown -h -t now
C.    init 1
D.    refresh-system

A. The init command can be used to access different runlevels. Runlevel 6 is used for rebooting the system. Option B will shut down the system entirely, not reboot it. Option C will place the system into single-user mode. Option D is not a valid option.

11.    When using an SysV init-based system, which command would you use if you make changes to the /etc/inittab file and want
those changes to be reloaded without a reboot?
A.    init-refresh
B.    init 6
C.    telinit
D.    reload-inittab

C. The telinit command can be used to refresh the system after changes have been made to /etc/inittab. Notably, option B will reboot the system but that was not an option in the question. Options A and D are not valid commands.


12.   Which command displays the current runlevel for a system?
A.    show-level
B.    init -level
C.    sudo init
D.    runlevel

 D. The runlevel command displays the current runlevel for a system. Option B is not a valid option to the init command, and adding sudo in front of the init command makes no difference. Option A is not a valid command.


13.  Within which folder are systemd unit configuration files stored?
A.    /etc/system.conf.d
B.    /lib/system.conf.d
C.    /lib/systemd/system
D.    /etc/sysconfd

 C. Unit configuration files are stored in /lib/systemd/system. The other directory options for this question are not relevant or do not exist by default.


14.  Which command is used with systemd in order to list the available service units?
A.    systemd list-units
B.    systemctl list-units
C.    systemd unit-list
D.    systemct show-units

B. The systemctl command is used to work with services and targets. The list-units command is used to list targets. The other commands are not used for this purpose or do not exist with the required option.


15.    Which option to lspci is used to display both numeric codes and device names?
A.    -numdev
B.    -n
C.    -nn
D.    -devnum

C. The -nn option displays both numbers and device names, making option C correct. The - n option (option B) displays only numbers. The other two options do not exist.


16.    Which command can be used to obtain a list of currently loadedkernel modules?
A.    insmod
B.    modlist
C.    Is -modules
D.    Ismod

 D. The ismod command is used to list currently loaded kernel modules, making option D correct for this question. The insmod command (option A) is used to load modules. Option C is a valid command but not a valid option for that command, and option B does not exist.


17.    Which option to the modprobe command shows the dependencies for a given module?
A.    -show-options
B.    -list-deps
C.    -show-depends
D.    -list-all

 C. The -show-depends option shows the modules that depend on the specified module. The other options do not exist.


18.    Which command can you use to send a message to all users who are currently logged into a system?
A.    cat
B.    wall
C.    tee
D.    ssh

B. The wall command is used to send a message to all users, thereby making option B correct. The cat command is used as a means to concatenate or view files, and tee is used to send output to standard output and a file. Finally, ssh is the secure shell client command and is not used for the purpose specified.


19.    Which of the following is a good first troubleshooting step when a hard disk is not detected by the Linux kernel?
A.    Unplug the disk.
B.    Check the system BIOS.
C.    Restart the web server service.
D.    Run the disk-detect command.

B. Checking to ensure that the disk is detected in the basic input/output system (BIOS) is a good first step in troubleshooting. Option A, unplugging the disk, won’t help it to be detected. Restarting the web server won’t help detect the disk, and the disk- detect command does not exist.


20.    Within which directory is information about USB devices stored?
A.    /etc/usbdevices
B.    /var/usb
C.    /lib/sys/usb
D.    /sys/bus/usb/devices

D. The /sys/bus/usb/devices directory contains information about  USB devices. The other directories are not valid for this purpose.


21.    If the kernel ring buffer has been overwritten, within which file can you look to find boot messages?
A.    /var/log/bootmessages
 B.    /var/log/mail.info
C.    /var/adm/log/boot.info
D.    /var/log/dmes

D. The file /var/log/dmesg will typically contain historical messages from the current booting of the system. On some distributions of Linux, this information is also in /var/log/boot.log.


22.    Which command and option can be used to determine whether a given service is currently loaded?
A.    systemctl -Is
B.    telinit
C.    systemctl status
D.    sysctl -a

C. Out of the options given, the systemcti status command and option is the most appropriate. The telinit and sysctl commands are not used for this purpose. Likewise, the -is option is not valid for systemctl.


23.    Which command on a systemd-controlled system would place the system into single-user mode?
A.    systemctl one
B.    systemctl isolate rescue.target
C.    systemctl single-user
D.    systemctl runlevel one

B. The isolate option is used to move the system into the target specified, making option B the correct one. The other options do not exist.


24.    Which command on a system controlled by Upstart will reload the configuration files?
A.    initctl reload
B.    systemd reload
C.    upstart -reload
D.    ups -reload

 A. The initctl reload command causes Upstart to reread its configuration files.


25.    When working with a SysV system, which option to chkconfig will display all services and their runlevels?
A.    -reload
B.    -list
C.    -all
D.    -ls

B. The -list option will show all services on a system along with their status for each runlevel.


26.    A drive connected to USB is considered which type of device?
A.    Medium
B.    Coldplug
C.    Hotplug
D.    Sideplug

C. USB devices are generally considered to be hotplug devices. Hotplug devices describe those devices that can be inserted and removed while the system is “hot,” or powered on, whereas coldplug devices are those that must be inserted and removed when the system is powered off.


27.    The system is using a temporary flash USB disk for data mounted at /dev/sda1. You need to remove the disk. Which of the following commands will enable the disk to be safely removed from the system?
A.    usbstop /dev/sda
B.    umount /dev/sda1
C.    unmount /dev/sda1
D.    dev-eject /dev/sda1

B. The umount command is used to unmount drives within a running system. The other commands do not exist.


28.    You have connected a USB disk to the system and need to find out its connection point within the system. Which of the following is the best method for accomplishing this task?
A.    Rebooting the system
B.    Viewing the contents of /var/log/usb. log
C.    Connecting the drive to a USB port that you know the number of
D.    Running dmesg and looking for the disk

D. Of the options presented, running dmesg is a common way to determine the location to which the kernel has assigned the drive. Rebooting the system is not a good option, though it would work. There is no such thing as /var/log/usb.log, and the location of the drive may change regardless of port, depending on how the drive may be detected in the system.


29.    Which of the following commands will initiate an immediate shutdown of the system?
A.    shutdown -c
B.    halt
C.    systemd stop
D.    stop-system

 B. From these options, only B will shut down the system immediately. Option A will cancel a shutdown.


30.    Which option within a systemd service file indicates the program to execute?
A.    StartProgram
B.    ShortCut
C.    ExecStart
D.    Startup

C. The Execstart option indicates the command to be executed on startup of a systemd service.


31.    Which command will display the default target on a computer running systemd?
A.    systemctl defaults
B.    update-rc.d defaults
C.    systemctl runlevel
D.    systemctl get-default

D. The systemctl get-default command will show the default target. The other commands and options are not valid.


32.    Which option to the systemctl command will change a service so that it runs on the next boot of the system?
A.    enable
B.    startonboot
C.    loadonboot
D.    start

 A. The enable option configures the service to start on boot. The start option, D, is used to start a service immediately. The other  options are not valid for this command.


33.    Which of the following best describes the /proc filesystem?
A.    /proc contains information about files to be processed.
B.    /proc contains configuration files for processes.
C.    /proc contains information on currently running processes, including the kernel.
D.    /proc contains variable data such as mail and web files.

C. The /proc filesystem contains information about currently running processes and additional information about the kernel and current boot of the system.


34.    Which command will retrieve information about the USB connections on a computer in a tree-like format?
A.    lsusb tree
B.    lsusb -tree
C.    lsusb -t
D.    usblist -tree

C. The -t option to lsusb will print output in a tree-like format so that you can see which devices are connected to which bus. The other arguments to lsusb are not valid, and the usblist command is not real.


35.    What is one reason why a device driver does not appear in the output of lsmod, even though the device is loaded and working properly?
A.    The use of systemd means that drivers are not required for most devices.
B.    The use of initramfs means that support is enabled by default.
C.    The system does not need a driver for the device.
D.    Support for the device has been compiled directly into the kernel.
 

 D. If a working device does not appear in ismod, it typically means that the kernel has a driver already loaded by virtue of being compiled into the kernel itself rather than loaded through a module. The use of systemd (option A) or initramfs (option B) has no effect.


36.    Which option to rmmod will cause the module to wait until it’s no longer in use to unload the module?
A.    -test
B.    -f
C.    -w
D.    -unload

 C. The -w option causes the module to wait until it’s no longer needed prior to unloading. The - f option forces immediate removal and should be used with caution. The other options are not valid for rmmod.


37.    You are using a storage area network (SAN) that keeps causing errors on your Linux system due to an improper kernel module created by the SAN vendor. When the SAN sends updates, it causes the filesystem to be mounted as read-only. Which command and option can you use to change the behavior of the filesystem to account for the SAN bug?
A.    mount -continue
B.    tune2fs -e continue
C.    mkfs -no-remount
D.    mount -o remount

 B. The tune2fs command can be used for this purpose but should be used with care because it can result in data corruption.


38.    Within which directory are rules related to udev stored?
A.    /etc/udev.conf
B.    /etc/udev.conf.d
C.    /etc/udev/rules.d
D.    /etc/udev.d

C. Rules related to udev are stored in /etc/udev/rules.d. The /etc/udev hierarchy contains the udev. conf configuration file along with other components related to the configuration of udev.


39.    Which option to ispci displays the kernel driver in use for the given Peripheral Component Interconnect (PCI) device?
A.    -t
B.    -k
C.    -n
D.    -a

B. The - k option shows the kernel driver associated with a given PCI device and can be helpful when planning a new kernel compile. The -t option displays information in a tree-like structure, and -n uses numbers instead of device names. There is no -a option.


40.    Within which of the following directories will you find blacklist information for modules loaded with modprobe?
A.    /etc/blacklist
B.    /etc/modprobe.d
C.    /etc/blacklist.mod
D.    /etc/modprobe

 B. The /etc/modprobe.d directory is used for storing configuration information related to modules such as that used for blacklisting purposes but also for other configuration information, such as udev and module options.


41.    When working with a CentOS 6 system, which command is used to create the iniţial RAM disk?
A.    mkinit
B.    dracut
C.    mkraminit
D.    mkinitfs

B. The dracut command is used to create the initial RAM disk for newer systems and has replaced the legacy mkinitrd command used for the same purpose.


42.    Within which file will you find a list of the currently available kernel symbols?
A.    /proc/kernelsyms
B.    /etc/kernel.conf
C.    /etc/lsyms
D.    /proc/kallsyms

D. The file /proc/kallsyms provides a way to view the currently loaded kernel symbols. This can be helpful for resolving module dependencies. Note that on legacy systems, this file might be  called /proc/ksyms.


43.    Which of the following commands can be used to show the various information related to a currently loaded module, including core size and settings for options?
A.    systool -v -m <module>
B.    modinfo -r <module>
C.    lsmod <module>
D.    infmod <module>

A. The systool utility can be used to show currently loaded options for a given module. The modinfo - r command is not valid, and though modinfo shows information about a module, it does not include core size and other settings. The lsmod command cannot be used for this purpose, and there is no infmod command.


44.    Which directory contains various elements and configuration information about the kernel such as the release number, domain name, location of modprobe, and other settings?
A.    /proc/sys/kmod
B.    /proc/sys/kernel
C.    /proc/kernel
D.    /proc/kernel/sys

B. The /proc/sys/kernel hierarchy contains vital configuration information about a kernel. These settings can be changed on a running system.


45.    Within which directory should systemd unit files that you create be stored?
A.    /etc/system
B.    /etc/systemd/system
C.    /usr/share/systemd
D.    /usr/share/system

B. The /etc/systemd/system directory is where it is recommended to store unit files for systemd. The other locations are not valid.


46.    Which of the following commands should you execute after making changes to systemd service configurations in order for those changes to take effect?
A.    systemd reload
B.    reboot
C.    systemctl daemon-reload
D.    systemctl reboot

C. The systemcti command will be used for this purpose with the daemon-reload subcommand. The reboot option would work to reload the systemd configuration but is not correct because it requires the entire server to reboot, which is not what was asked in this question.


47.    Which of the following files contains the runlevels for the system along with a reference to the corresponding rc file?
A.    /etc/runlevels
B.    /etc/inittab
C.    /etc/rc
D.    /etc/runlevel

B. The /etc/inittab file contains the various runlevels and what to run at the given runlevel. For example, runlevel 1 is single-user, runlevel 6 is reboot, and so on. The other files listed do not exist.


48.    Which boot loader can be used for File Allocation Table (FAT) filesystems and might be used for a rescue disk?
A.    SYSBOOT
B.    SYSLINUX
C.    TIELINUX
D.    FATLINUX

B. The SYSLINUX boot loader is used for FAT filesystems to create rescue disks and to assist with installation of Linux in general. SYSLINUX also describes an overall project containing other specialty boot loaders. The other options listed for this question are not valid boot loaders, though.


49.    Which of the following is used to provide an early filesystem- based loading process for key drivers needed to continue the boot process?
A.    bootrd
B.    driverload
C.    initrd
D.    initdrv

 C. initrd is used for an initial root filesystem for early drivers. initrd is configured to load within the GRUB configuration file for a given operating system.


50.    When booting a system you receive an error similar to "No init found" and are then placed at an initramfs prompt. You need to check the hard drive for errors. Which of the following commands performs an error check on a hard drive partition in Linux?
A.    defrag
B.    fsck
C.    checkfs
D.    chkfs

B. The fsck command is used to diagnose and repair hard drive problems in Linux. The defrag command is not available in Linux.


51.    Which of the following commands places the system in single-user mode?
A.    tellinit 1
B.    chginit 1
C.    telinet 1
D.    telinit 1

D. The telinit command can be used for this purpose, and passing 1 as the argument will switch the system into single-user mode. The other commands shown are not valid.


52.    Which of the following commands changes the boot order for the next boot?
A.    efibootmgr -c
B.    efibootmgr -b -B
C.    efibootmgr -o
D.    efibootmgr -n

D. The -n option changes the boot order for the next boot only and boots from the specified partition. The -b along with -B modifies and then deletes the option. The -o option sets the boot order. The -c option creates a boot number.


53.    Which boot loader can be used with ISO9660 CD-ROMS?
A.    ISOLINUX
B.    EFIBOOT
C.    ISOFS
D.    BOOTISO

A. ISOLINUX provides a means by which CD-ROMS formatted as  ISO 9660 can be booted. It’s very common to have live CDs or rescue/recovery CDs that use ISOLINUX for boot. The other boot loaders are not valid for this purpose or don’t exist.


54.    Within which directory are systemd user unit files placed by installed packages?
A.    /usr/lib/systemd/user
B.    /usr/lib/systemd/system
C.    /usr/systemd
D.    /usr/system

A. The /usr/lib/systemd hierarchy contains files related to systemd configuration. The user directory within the hierarchy is used for user unit files, and the system files are stored in /usr/lib/systemd/system.


55.    When using Unified Extensible Firmware Interface (UEFI), which of the following files can be used as a boot loader?
A.    shim.uefi
B.    shim.efi
C.    shim.fx
D.    efi.shim

B. Due to the decidedly insecure decisions made with the design of Microsoft’s UEFI, a shim is often needed to enable Linux to boot on a system with UEFI. The shim. efi file can be used as an initial boot loader for this purpose.


56.    Which directory on a SysV init-based system contains scripts that are used for starting and stopping services?
A.    /etc/rc.int
B.    /etc/boot
C.    /etc/bootscripts
D.    /etc/init.d

D. Scripts for starting and stopping services are located in /etc/init .d on a SysV init-based system. The other directories listed within this question are not valid.


57.    Which of the following commands is used to find overriding configuration files on a systemd-based system?
A.    diff
B.    systemctl -diff
C.    systemd-delta
D.    systemctl configoverride

C. The systemd-delta command is used to determine overridden configuration files. Of the other commands, diff is valid but not for this purpose. The systemcti command is also valid, but again, not for the purpose described.

 

58.    Which of the following commands on a Red Hat system lists all of the SysV services set to be executed on boot along with their setting for each runlevel?
A.    rlevel
B.    chkconfig -list
C.    bootldr -list
D.    init -bootlist

B. The chkconfig-list command displays all services that will be executed on boot along with the setting for each service for each runlevel. Of the other commands, the init command is valid but does not have a -bootlist option. The other commands are invalid.


59.    Which of the following commands, executed from within the UEFI shell, controls the boot configuration?
A.    bootcfg
B.    bcfg
C.    grub-install
D.    grcfg

B. The bcfg command within the UEFI shell is used to configure boot loaders on a UEFI-based system. The command can accept various parameters to configure how the boot loader and kernel will load on boot. Of the other commands shown, grub-install is valid but not within the UEFI shell.


60.    Which file must exist within /tftpboot on the Trivial File Transfer Protocol (TFTP) server for a system that will use PXELINUX for its boot loader?
A.    pxelinux.tftp
B.    pxelinux.boot
C.    pxelinux.conf
D.    pxelinux.0

D. The pxelinux. 0 file must exist within /tftpboot on the TFTP server in order for a system to use PXELINUX for booting. The other files are not valid or necessary for PXELINUX.


61.    Which utility can you use on a Debian or Ubuntu system to manage SysV init scripts, such as setting them to run on boot?
A.    bootorder
B.    bootloader
C.    configchk
D.    update-rc.d

D. The update-rc. d utility can be used to manage SysV init scripts on Debian or Ubuntu and other distributions. When using update- rc.d, you supply the script name and the utility will take care of creating symlinks to the appropriate runlevels.


62.    Which key, pressed during the operating system selection menu, is used to enable editing of the parameters related to boot with GRUB?
A.    v
B.    e
C.    r
D.    y

B. The e key, when pressed at the right time during boot, will send you into the GRUB shell, where you can change parameters related to boot, such as the kernel options and other related  parameters.


63.    Which systemcti subcommand is used to switch runlevels?
A.    switch
B.    move
C.    runlevel
D.    isolate

D. The isoiate subcommand followed by the desired target is used to switch between runlevels with a systemd-based system. The other subcommands shown are not valid for systemctl.


64.    When examining the /etc/inittab file, which option signifies the default runlevel to which the system will boot?
A.    default
B.    defaultboot
C.    initdefault
D.    defaultlvl

C. The runlevel defined as initdefault is the default runlevel for the system. The other options shown do not exist.


65.    Which of the following is used instead of initrd to provide an early filesystem for essential drivers?
A.    initnext
B.    initramfs
C.    initialize
D.    initfs

B. The initramfs system is used instead of initrd to create the filesystem-based loading process for key drivers that are needed for boot.


66.    Which of the following commands sets the default systemd target to multi-user?
A.    systemctl set-default multi-user.target
B.    systemd set-default multi-user.target
C.    systemctl set-def muser.target
D.    systemd set-def muser.target

 A. The systemctl command will be used for this purpose, and the set-defauit subcommand is necessary to affect the desired behavior. The target file is simply called multi-user. target.


67.    When using a shim for booting a UEFI-based system, which of the following files is loaded after shim. efi?
A.    grubx64.cfg
B.    grub.conf
C.    grubx64.efi
D.    efi.boot

C. The shim. efi boot loader loads another boot loader, which is grubx64. efi by default. The other options are not valid filenames for the purpose described.


68.    Within which hierarchy are files from /etc/init. d linked so that the files are executed during the various runlevels of a SysV system?
A.    /etc/rc.S
B.    /etc/rc
C.    /etc/boot/rc
D.    /etc/rc.d

D. The /etc/rc. d hierarchy contains symbolic links to files found within /etc/init. d. These symlinks are then used for executing the scripts at the appropriate runlevel. For example, on boot the system will execute the scripts found in the runlevel directory for each runlevel executed at boot time.


69.    What is the name of the unit to which a systemd system is booted in order to start other levels?
A.    default.target
B.    init.target
C.    initial.target
D.    load.target

A. The default. target is the default target unit that is activated by systemd on boot. The default target then starts other services based on the dependencies.


70.    When viewing information in /dev/disk/by-path using the command ls -l, which of the following filenames represents a logical unit number (LUN) from Fibre Channel?
A.    /dev/fc0
B.    pci-0000:1a:00.0-fc-0x500601653ee0025f:0x0000000000000000
C.    pci-0000:1a:00.0-scsi-0x500601653ee0025f:0x0000000000000000
D.    /dev/fibre0

B. LUNs that contain the characters fc are found through Fibre Channel. Therein lies the difference between options B and C, where option C contains the letters scsi, which would usually represent a local disk. The other options are not valid.


71.    You have purchased new solid-state drive (SSD) hardware that uses the NVMe (Non-Volatile Memory Express) protocol but cannot find the disks in the normal /dev/sd* location in which you have traditionally found such storage. In which location should you look for these drives?
A.    /dev/nd*
B.    /dev/nvme*
C.    /dev/nv*
D.    /dev/nvme/*

B. NVMe-capable drives are named /dev/nvme*. No special drivers are needed other than those found in the native kernel on a modern system. The other options do not exist as paths by default.


72.    Which file contains information about the current md Redundant Array of Inexpensive Disks (RAID) configuration such as the personalities?
A.    /proc/raidinfo
B.    /proc/rhyinfo
C.    /proc/mdraid
D.    /proc/mdstat

D. The /proc/mdstat file contains information on RAID arrays, including RAID personalities found on the system, the devices that comprise the array, and other pertinent information. The other files shown are not valid.


73.    Which of the following directory hierarchies contains information such as the World Wide Name (WWN) for Fibre Channel?
A.    /sys/class/wwn
B.    /sys/class/fc_host
C.    /sys/class/fclist
D.    /sys/class/fc/wwn

B. The /sys/class/fc_host directory contains other directories based on the Fibre Channel connections available. Within those host directories will be found the WWN in a file called port_name.  The other directory hierarchies are not valid.


74.    Information about logical volumes can be found in which of the following directories?
A.    /dev/lvinfo
B.    /dev/map
C.    /dev/mapper
D.    /dev/lvmap

C. The /dev/mapper directory contains information about multipath devices such as logical volumes. The other directories are not valid.


75.    Which of the following commands will examine the PCI subsystem for NVMe-based devices?
A.    psnvme    
B.    lsnvme    
C.    lspci |   grep scsi
D.    lspci |  grep -i nvme

C. The lspci command will be used for this purpose. NVMe devices are listed with the name nVME or NVMe; therefore, adding -i to grep will make the search case insensitive. You’d use this in order to ensure that the devices are detected. The other commands are not valid, with the exception of the lspci command, but you cannot grep for scsi in this scenario.


76.    Which of the following devices is the location of the first Small Computer System Interface (SCSI) tape device detected at boot?
A.    /dev/st1
B.    /dev/sd0
C.    /dev/sd1
D.    /dev/st0

D. Tape devices are found within /dev/st*, making st0 the first device.


77.    Which of the following files should be used to display a message to users prior to logging in locally?
A.    /etc/loginmesg
B.    /etc/logmessage.txt
C.    /etc/issue
D.    /etc/banner

C. The /etc/issue file is used to provide a message to users, such as a login banner, prior to local login. The other files shown are not valid for the purpose described.


78.    Which file contains a message that is displayed after a successful login?
A.    /etc/loginbanner
B.    /etc/issue
C.    /etc/motd
D.    /etc/message

 C. The contents of the file motd, an abbreviation for Message of the Day, are displayed when a user logs in successfully. Among the other options, the contents of /etc/issue are displayed prior to local login. The other filenames are not valid for this purpose.


79.    Which of the following files can be used to provide a message to users logging in remotely with a protocol such as telnet?
A.    /etc/telnet.msg
B.    /etc/issue.net
C.    /etc/login.msg
D.    /etc/telnet.login

B. The /etc/issue.net file is used to provide a message for remote logins such as telnet. The other files listed are not valid for the purpose described.


80.    Which of the following commands turns off the computer, including removing power, if possible?
A.    systemctl halt
B.    systemctl reboot
C.    systemctl stop
D.    systemctl poweroff

D. The poweroff target of systemd, accessed using the systemcti command, is used for halting the system and then attempting to remove power on compatible systems. The halt target stops the system but does not attempt to remove power, whereas reboot simply restarts the system. There is no stop target.


81.    Which of the following shutdown commands reboots the system in 15 minutes?
A.    shutdown    -r +15
B.    shutdown    +15
C.    shutdown    -15
D.    shutdown    -r 00:15

A. The - r option is needed to specify reboot, and the format for counting time from now is prefaced with a plus sign (+), making option A correct. Of the other commands, specifying +15 without the - r option simply shuts down the computer in 15 minutes, and specifying the time as 00:15, as in option D, will shut down the computer at 12:15 a.m.


82.    When terminating a process on a SysV init-based system, which command can be used to stop the process?
A.    service
B.    sysv
C.    syscl
D.    servc

A. The service command is used to work with services, such as starting and stopping them. On newer systems, the systemctl command has replaced the service command.


83.    Which of the following commands show the boot messages captured by systemd?
A.    journalctl -b
B.    systemctl -b
C.    journalctl -bm
D.    journalctl -l

A. The journalctl command with the -b option displays boot  messages.


84.    Which option to the shutdown command halts or stops the system?
A.    -h
B.    -s
C.    -f
D.    -t

A. The -h option halts the system, including shutting down acpid- related hardware.


85.    Which signal number is used as SIGKILL when used with the kill command?
A.    1
B.    4
C.    9
D.    11

C. The number 9 corresponds to SIGKILL and can be passed to the kill command to issue that signal. The number 1 is SIGHUP. Others can be found within the manual for the kill command.


86.    Which directory contains rc-related startup scripts on a legacy Debian system?
A.    /etc/init
B.    /etc/inittab
C.    /etc/init.d
D.    /etc/rc.init

C. The /etc/init.d directory contains the startup and shutdown scripts for services on a Debian system that is not running systemd.


87.    When attempting to enable an integrated peripheral on a basic input/output system (BIOS) system, what should be done to determine whether the peripheral has been enabled within the BIOS?
A.    Examine boot messages to determine if the kernel has detected the peripheral.
B.    Examine /var/iog/auth. log for detection of the peripheral.
C.    Reboot the system to determine if the device works.
D.    Enable the peripheral by removing it from the blacklisted modules.

A. Among the options, examining the boot messages would be a first logical step and would prevent having to reboot the system. Rebooting may be a next step in order to examine the status of the peripheral within the BIOS.


88.    Which option to the wall command suppresses the "Broadcast message" banner that normally displays?
A.    -b
B.    -a
C.    -n
D.    -d

C. The - n option prevents the banner from displaying when using wall. The other options shown are not used with the wall command.