ccpq/data/lpic1_chap1.csv

16 KiB
Raw Permalink Blame History

1LEVELANSWERQUESTION12345
2101-500Which of the following commands is used to view kernel-related udev events in real time?udevis alllsudev -fudevmon -audevadm monitor
3101-500Which command enables you to view the current interrupt request (IRQ) assignments?view /proc/irqcat /proc/interruptscat /dev/irgless /dev/irg
4101-500Configuration of udev devices is done by working with files in which directory?/udev/devices/devices//udev/config/etc/udev
5101-500Which command is used to automatically load a module and its dependencies?modprobelsmodinsmodrmmod
6101-500Which command is used to obtain a list of USB devices?usb-listlsusb1s -usb1s --usb
7101-500When 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?queryinfogetinfodevinfo
8101-500Which command can be used to view the kernel ring buffer in order to troubleshoot the boot process?lsbootboot-logkrblogdmesg
9101-500During the initialization process for a Linux system using SysV init, which runlevel corresponds to single-user mode?Runlevel 5Runlevel SURunlevel 1Runlevel 6
10101-500On a system using SysV init, in which directory are the startup and shutdown scripts for services stored?/etc/init-d/etc/init/etc/sysV/etc/init.d
11101-500Which command can be used to reboot a system?init 6shutdown -h -t nowinit 1refresh-system
12101-500When 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?init-refreshinit 6telinitreload-inittab
13101-500Which command displays the current runlevel for a system?show-levelinit --levelsudo initrunlevel
14101-500Within which folder are systemd unit configuration files stored?/etc/system.conf.d/lib/system.conf.d/lib/systemd/system/etc/sysconfd
15101-500Which command is used with systemd in order to list the available service units?systemd List-unitssystemctl list-unitssystemd unit-listsystemctl show-units
16101-500Which option to lspci is used to display both numeric codes and device names?-numdev-n-nn-devnum
17101-500Which command can be used to obtain a list of currently loaded kernel modules?insmodmodlist1s --modules1smod
18101-500Which option to the modprobe command shows the dependencies for a given module?--show-options--list-deps--show-depends--list-all
19101-500Which command can you use to send a message to all users who are currently logged into a system?catwallteessh
20101-500Which of the following is a good first troubleshooting step when a hard disk is not detected by the Linux kernel?Unplug the disk.Check the system BIOS.Restart the web server service.Run the disk-detect command.
21101-500Within which directory is information about USB devices stored?/etc/usbdevices/var/usb/lib/sys/usb/sys/bus/usb/devices
22101-500If the kernel ring buffer has been overwritten, within which file can you look to find boot messages?/var/log/bootmessages/var/log/mail.info/var/adm/log/boot. info/var/log/dmesg
23101-500Which command and option can be used to determine whether a given service is currently loaded?systemctl --1stelinitsystemctl statussysctl -a
24101-500Which command on a systemd-controlled system would place the system into single-user mode?systemctl onesystemctl isolate rescue. targetsystemctl single-usersystemctl runlevel one
25101-500Which command on a system controlled by Upstart will reload the configuration files?initctl reloadsystemd reloadupstart --reloadups -reload
26101-500When working with a SysV system, which option to chkconfig will display all services and their runlevels?--reload--list--all--ls
27101-500A drive connected to USB is considered which type of device?MediumColdplugHotplugSideplug
28101-500The system is using a temporary flash USB disk for data mounted at /dev/sdal. You need to remove the disk. Which of the following commands will enable the disk to be safely removed from the system?usbstop /dev/sdaumount /dev/sdalunmount /dev/sdaldev-eject /dev/sdal
29101-500You 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?Rebooting the systemViewing the contents of /var/log/usb. logConnecting the drive to a USB port that you know the number ofRunning dmesg and looking for the disk
30101-500Which of the following commands will initiate an immediate shutdown of the system?shutdown -chaltsystemd stopstop-system
31101-500Which option within a systemd service file indicates the program to execute?StartProgramShortCutExecStartStartup
32101-500Which command will display the default target on a computer running systemd?systemctl defaultsupdate-rc.d defaultssystemctl runlevelsystemctl get-default
33101-500Which option to the systemctl command will change a service so that it runs on the next boot of the system?enablestartonbootloadonbootstart
34101-500Which of the following best describes the /proc filesystem?/proc contains information about files to be processed./proc contains configuration files for processes./proc contains information on currently running processes, including the kernel./proc contains variable data such as mail and web files.
35101-500Which command will retrieve information about the USB connections on a computer in a tree-like format?lsusb -treelsusb --treelsusb -tusblist --tree
36101-500What is one reason why a device driver does not appear in the output of lsmod, even though the device is loaded and working properly?The use of systemd means that drivers are not required for most devices.The use of initramfs means that support is enabled by default.The system does not need a driver for the device.Support for the device has been compiled directly into the kernel.
37101-500Which option to rmmod will cause the module to wait until its no longer in use to unload the module?-test-f-w-unload
38101-500You 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?mount --continuetune2fs -e continuemkfs --no-remountmount -o remount
39101-500Within which directory are rules related to udev stored?/etc/udev.conf/etc/udev.conf.d/etc/udev/rules.d/etc/udev.d
40101-500Which option to Lspci displays the kernel driver in use for the given Peripheral Component Interconnect (PCI) device?-t-k-n-a
41101-500Within which of the following directories will you find blacklist information for modules loaded with modprobe?/etc/blacklist/etc/modprobe.d/etc/blacklist.mod/etc/modprobe
42101-500When working with a CentOS 6 system, which command is used to create the initial RAM disk?mkinitdracutmkraminitmkinitfs
43101-500Within which file will you find a list of the currently available kernel symbols?/proc/kernelsyms/etc/kernel.conf/etc/syms/proc/kallsyms
44101-500Which 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?systool -v -m <module>modinfo -r <module>lsmod <module>infmod <module>
45101-500Which directory contains various elements and configuration information about the kernel such as the release number, domain name, location of modprobe, and other settings?/proc/sys/kmod/proc/sys/kernel/proc/kernel/proc/kernel/sys
46101-500Within which directory should systemd unit files that you create be stored?/etc/system/etc/systemd/system/usr/share/systemd/usr/share/system
47101-500Which of the following commands should you execute after making changes to systemd service configurations in order for those changes to take effect?systemd reloadrebootsystemctl daemon-reloadsystemctl reboot
48101-500Which of the following files contains the runlevels for the system along with a reference to the corresponding rc file?/etc/runlevels/etc/inittab/etc/re/etc/runlevel
49101-500Which boot loader can be used for File Allocation Table (FAT) filesystems and might be used for a rescue disk?SYSBOOTSYSLINUXTIELINUXFATLINUX
50101-500Which of the following is used to provide an early filesystem-based loading process for key drivers needed to continue the boot process?bootrddriverloadinitrdinitdrv
51101-500When 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?defragfsckcheckfschkfs
52101-500Which of the following commands places the system in single-user mode?tellinit 1chginit 1telinet 1telinit 1
53101-500Which of the following commands changes the boot order for the next boot?efibootmgr -cefibootmgr -b -Befibootmgr -oefibootmgr -n
54101-500Which boot loader can be used with IS09660 CD-ROMS?ISOLINUXEFIBOOTISOFSBOOTISO
55101-500Within which directory are systemd user unit files placed by installed packages?/usr/lib/systemd/user/usr/lib/systemd/system/usr/systemd/usr/system
56101-500When using Unified Extensible Firmware Interface (UEFI), which of the following files can be used as a boot loader?shim.uefishim.efishim. fxefi.shim
57101-500Which directory on a SysV init-based system contains scripts that are used for starting and stopping services?/etc/rc.int/etc/boot/etc/bootscripts/etc/init.d
58101-500Which of the following commands is used to find overriding configuration files on a systemd-based system?diffsystemctl -diffsystemd-deltasystemctl configoverride
59101-500Which 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?rlevelchkconfig --listbootldr --listinit --bootlist
60101-500Which of the following commands, executed from within the UEFI shell, controls the boot configuration?bootcfgbefggrub-installercfg
61101-500Which file must exist within /tftpboot on the Trivial File Transfer Protocol (TFTP) server for a system that will use PXELINUX for its boot loader?pxelinux.tftppxelinux.bootpxelinux.confpxelinux.0
62101-500Which utility can you use on a Debian or Ubuntu system to manage SysV init scripts, such as setting them to run on boot?bootorderbootloaderconfigchkupdate-rc.d
63101-500Which key, pressed during the operating system selection menu, is used to enable editing of the parameters related to boot with GRUB?very
64101-500Which systemct1 subcommand is used to switch runlevels?switchmoverunlevelisolate
65101-500When examining the /etc/inittab file, which option signifies the default runlevel to which the system will boot?defaultdefaultbootinitdefaultdefaultlvl
66101-500Which of the following is used instead of initrd to provide an early filesystem for essential drivers?initnextinitramfsinitializeinitfs
67101-500Which of the following commands sets the default systemd target to multi-user?systemctl set-default multi-user.targetsystemd set-default multi-user. targetsystemctl set-def muser.targetsystemd set-def muser.target
68101-500When using a shim for booting a UEFI-based system, which of the following files is loaded after shim.efi?grubx64.cfggrub.confgrubx64.efiefi.boot
69101-500Within which hierarchy are files from /etc/init.d linked so that the files are executed during the various runlevels of a SysV system?/etc/rc.S/etc/rc/etc/boot/re/etc/rc.d
70101-500What is the name of the unit to which a systemd system is booted in order to start other levels?default.targetinit.targetinitial.targetload.target
71101-500When viewing information in /dev/disk/by-path using the command Ls -1, which of the following filenames represents a logical unit number (LUN) from Fibre Channel?/dev/fcopci-0000:1a:00.0-fc-0x500601653ee0025F : 0x0000000000000000pci-0000:1a:00.0-scsi-0x500601653ee0025f : 0x0000000000000000/dev/fibreo
72101-500You 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?/dev/nd*/dev/nvme*/dev/nv*/dev/nvme/*
73101-500Which file contains information about the current md Redundant Array of Inexpensive Disks (RAID) configuration such as the personalities?/proc/raidinfo/proc/rhyinfo/proc/mdraid/proc/mdstat
74101-500Which of the following directory hierarchies contains information such as the World Wide Name (WWN) for Fibre Channel?/sys/class/wwn/sys/class/fc_host/sys/class/fclist/sys/class/fc/wwn
75101-500Information about logical volumes can be found in which of the following directories?/dev/lvinfo/dev/map/dev/mapper/dev/lvmap
76101-500Which of the following commands will examine the PCI subsystem for NVMe-based devices?psnvmelsnvmelspci | grep scsilspci | grep -i nvme
77101-500Which of the following devices is the location of the first Small Computer System Interface (SCSI) tape device detected at boot?/dev/st1/dev/sdo/dev/sdi/dev/sto
78101-500Which of the following files should be used to display a message to users prior to logging in locally?/etc/loginmesg/etc/logmessage.txt/etc/issue/etc/banner
79101-500Which file contains a message that is displayed after a successful login?/etc/loginbanner/etc/issue/etc/motd/etc/message
80101-500Which of the following files can be used to provide a message to users logging in remotely with a protocol such as telnet?/etc/telnet.msg/etc/issue.net/etc/login.msg/etc/telnet. login
81101-500Which of the following commands turns off the computer, including removing power, if possible?systemctl haltsystemctl rebootsystemctl stopsystemctl poweroff
82101-500Which of the following shutdown commands reboots the system in 15 minutes?shutdown -r +15shutdown +15shutdown -15shutdown -r 00:15
83101-500When terminating a process on a SysV init-based system, which command can be used to stop the process?servicesysvsysclservc
84101-500Which of the following commands show the boot messages captured by systemd?journalctl -bsystemctl -bjournatctl -bmjournatctl -1
85101-500Which option to the shutdown command halts or stops the system?-h-s-f-t
86101-500Which signal number is used as SIGKILL when used with the kill command?14911
87101-500Which directory contains rc-related startup scripts on a legacy Debian system?/etc/init/etc/inittab/etc/init.d/etc/rc.init
88101-500When 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?Examine boot messages to determine if the kernel has detected the peripheral.Examine /var/log/auth. Log for detection of the peripheral.Reboot the system to determine if the device works.Enable the peripheral by removing it from the blacklisted modules.
89101-500Which option to the wall command suppresses the "Broadcast message" banner that normally displays?-b-a-n-d