ccpq/data/lpic1_book_101-500.csv

69 KiB
Raw Blame History

1LEVELANSWERQUESTION1234
2101-5001. Which of the following commands is used to view kernel-related udev events in real time?udevls alllsudev -fudevmon -audevadm monitor
3101-5002. Which command enables you to view the current interrupt request (IRQ) assignments?view /proc/irq cat /proc/interrupts cat /dev/irq less /dev/irq
4101-5003. Configuration of udev devices is done by working with files in which directory? /udev/devices /devices/ /udev/config /etc/udev
5101-5004. Which command is used to automatically load a module and its dependencies? modprobe lsmod insmod rmmod
6101-5005. Which command is used to obtain a list of USB devices? usb-list lsusb ls-usb ls --usb
7101-5006. 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? query info getinfo devinfo
8101-5007. Which command can be used to view the kernel ring buffer in order to troubleshoot the boot process? lsboot boot-log krblog dmesg
9101-5008. During the initialization process for a Linux system using SysV init, which runlevel corresponds to single-user mode? Runlevel 5 Runlevel SU Runlevel 1 Runlevel 6
10101-5009. On 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-50010. Which command can be used to reboot a system? init 6 shutdown -h -t now init 1 refresh-system
12101-50011. 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? init-refresh init 6 telinit reload-inittab
13101-50012. Which command displays the current runlevel for a system? show-level init --level sudo init runlevel
14101-50013. Within which folder are systemd unit configuration files stored? /etc/system.conf.d /lib/system.conf.d /lib/systemd/system /etc/sysconfd
15101-50014. Which command is used with systemd in order to list the available service units? systemd list-units systemctl list-units systemd unit-list systemctl show-units
16101-50015. Which option to lspci is used to display both numeric codes and device names? -numdev -n -nn -devnum
17101-50016. Which command can be used to obtain a list of currently loaded kernel modules? insmod modlist ls --modules lsmod
18101-50017. Which option to the modprobe command shows the dependencies for a given module? --show-options --list-deps --show-depends --list-all
19101-50018. Which command can you use to send a message to all users who are currently logged into a system? cat wall teessh
20101-50019. Which 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-50020. Within which directory is information about USB devices stored? /etc/usbdevices /var/usb /lib/sys/usb /sys/bus/usb/devices
22101-50021. If 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-50022. Which command and option can be used to determine whether a given service is currently loaded? systemctl --ls telinit systemctl status sysctl -a
24101-50023. Which command on a systemd-controlled system would place the system into single-user mode? systemctl one systemctl isolate rescue.target systemctl single-user systemctl runlevel one
25101-50024. Which command on a system controlled by Upstart will reload the configuration files? initctl reload systemd reload upstart --reload ups -reload
26101-50025. When working with a SysV system, which option to chkconfig will display all services and their runlevels? --reload --list --all --ls
27101-50026. A drive connected to USB is considered which type of device? Medium Coldplug Hotplug Sideplug
28101-50027. 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? usbstop /dev/sda umount /dev/sda1 unmount /dev/sda1 dev-eject /dev/sda1
29101-50028. 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? Rebooting the system Viewing the contents of /var/log/usb.log Connecting the drive to a USB port that you know the number of Running dmesg and looking for the disk
30101-50029. Which of the following commands will initiate an immediate shutdown of the system? shutdown -c halt systemd stop stop-system
31101-50030. Which option within a systemd service file indicates the program to execute? StartProgram ShortCut ExecStart Startup
32101-50031. Which command will display the default target on a computer running systemd? systemctl defaults update-rc.d defaults systemctl runlevel systemctl get-default
33101-50032. Which option to the systemctl command will change a service so that it runs on the next boot of the system? enable startonboot loadonboot start
34101-50033. Which 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-50034. Which command will retrieve information about the USB connections on a computer in a tree-like format? lsusb -tree lsusb --tree lsusb -t usblist --tree
36101-50035. 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? 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-50036. Which option to rmmod will cause the module to wait until its no longer in use to unload the module? -test -f -w -unload
38101-50037. 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? mount --continue tune2fs -e continue mkfs --no-remount mount -o remount
39101-50038. Within which directory are rules related to udev stored? /etc/udev.conf /etc/udev.conf.d /etc/udev/rules.d /etc/udev.d
40101-50039. Which option to lspci displays the kernel driver in use for the given Peripheral Component Interconnect (PCI) device? -t -k -n -a
41101-50040. Within 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-50041. When working with a CentOS 6 system, which command is used to create the initial RAM disk? mkinit dracut mkraminit mkinitfs
43101-50042. Within which file will you find a list of the currently available kernel symbols? /proc/kernelsyms /etc/kernel.conf /etc/lsyms /proc/kallsyms
44101-50043. 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? systool -v -m <module> modinfo -r <module> lsmod <module> infmod <module>
45101-50044. Which 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-50045. Within which directory should systemd unit files that you create be stored? /etc/system /etc/systemd/system /usr/share/systemd /usr/share/system
47101-50046. Which of the following commands should you execute after making changes to systemd service configurations in order for those changes to take effect? systemd reload reboot systemctl daemon-reload systemctl reboot
48101-50047. Which of the following files contains the runlevels for the system along with a reference to the corresponding rc file? /etc/runlevels /etc/inittab /etc/rc /etc/runlevel
49101-50048. Which boot loader can be used for File Allocation Table (FAT) filesystems and might be used for a rescue disk? SYSBOOT SYSLINUX TIELINUX FATLINUX
50101-50049. Which of the following is used to provide an early filesystem-based loading process for key drivers needed to continue the boot process? bootrd driverload initrd initdrv
51101-50050. 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? defrag fsck checkfs chkfs
52101-50051. Which of the following commands places the system in single-user mode? tellinit 1 chginit 1 telinet 1 telinit 1
53101-50052. Which of the following commands changes the boot order for the next boot? efibootmgr -c efibootmgr -b -B efibootmgr -o efibootmgr -n
54101-50053. Which boot loader can be used with ISO9660 CD-ROMS? ISOLINUX EFIBOOT ISOFS BOOTISO
55101-50054. Within which directory are systemd user unit files placed by installed packages? /usr/lib/systemd/user /usr/lib/systemd/system /usr/systemd /usr/system
56101-50055. When using Unified Extensible Firmware Interface (UEFI), which of the following files can be used as a boot loader? shim.uefi shim.efi shim.fx efi.shim
57101-50056. Which 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-50057. Which of the following commands is used to find overriding configuration files on a systemd-based system? diff systemctl -diff systemd-delta systemctl configoverride
59101-50058. 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? rlevel chkconfig --list bootldr --list init --bootlist
60101-50059. Which of the following commands, executed from within the UEFI shell, controls the boot configuration? bootcfg bcfg grub-install grcfg
61101-50060. 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? pxelinux.tftp pxelinux.boot pxelinux.conf pxelinux.0
62101-50061. Which utility can you use on a Debian or Ubuntu system to manage SysV init scripts, such as setting them to run on boot? bootorder bootloader configchk update-rc.d
63101-50062. Which key, pressed during the operating system selection menu, is used to enable editing of the parameters related to boot with GRUB? v e r y
64101-50063. Which systemctl subcommand is used to switch runlevels? switch move runlevel isolate
65101-50064. When examining the /etc/inittab file, which option signifies the default runlevel to which the system will boot? default defaultboot initdefault defaultlvl
66101-50065. Which of the following is used instead of initrd to provide an early filesystem for essential drivers? initnext initramfs initialize initfs
67101-50066. Which of the following commands sets the default systemd target to multi-user? systemctl set-default multi-user.target systemd set-default multi-user.target systemctl set-def muser.target systemd set-def muser.target
68101-50067. When using a shim for booting a UEFI-based system, which of the following files is loaded after shim.efi? grubx64.cfg grub.conf grubx64.efi efi.boot
69101-50068. Within 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/rc /etc/rc.d
70101-50069. What is the name of the unit to which a systemd system is booted in order to start other levels? default.target init.target initial.target load.target
71101-50070. 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? /dev/fc0 pci-0000:1a:00.0-fc-0x500601653ee0025f:0x0000000000000000 pci-0000:1a:00.0-scsi-0x500601653ee0025f:0x0000000000000000 /dev/fibre0
72101-50071. 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? /dev/nd* /dev/nvme* /dev/nv* /dev/nvme/*
73101-50072. Which 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-50073. Which 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-50074. Information about logical volumes can be found in which of the following directories? /dev/lvinfo /dev/map /dev/mapper /dev/lvmap
76101-50075. Which of the following commands will examine the PCI subsystem for NVMe-based devices? psnvme lsnvme lspci | grep scsi lspci | grep -i nvme
77101-50076. Which of the following devices is the location of the first Small Computer System Interface (SCSI) tape device detected at boot? /dev/st1 /dev/sd0 /dev/sd1 /dev/st0
78101-50077. Which 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-50078. Which file contains a message that is displayed after a successful login? /etc/loginbanner /etc/issue /etc/motd /etc/message
80101-50079. Which 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-50080. Which of the following commands turns off the computer, including removing power, if possible? systemctl halt systemctl reboot systemctl stop systemctl poweroff
82101-50081. Which of the following shutdown commands reboots the system in 15 minutes? shutdown -r +15 shutdown +15 shutdown -15 shutdown -r 00:15
83101-50082. When terminating a process on a SysV init-based system, which command can be used to stop the process? service sysv syscl servc
84101-50083. Which of the following commands show the boot messages captured by systemd? journalctl -b systemctl -b journalctl -bm journalctl -l
85101-50084. Which option to the shutdown command halts or stops the system? -h -s -f -t
86101-50085. Which signal number is used as SIGKILL when used with the kill command? 14911
87101-50086. Which directory contains rc-related startup scripts on a legacy Debian system? /etc/init /etc/inittab /etc/init.d /etc/rc.init
88101-50087. 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? 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-50088. Which option to the wall command suppresses the "Broadcast message" banner that normally displays? -b -a -n -d
90101-5001. A Serial Advanced Technology Attachment (SATA) disk will use which of the following identifiers? /dev/hdX /dev/sataX /dev/sdX /disk/sataX
91101-5002. Which option given at boot time within the GRUB configuration will boot the system into single-user mode? single-user su single root
92101-5003. During boot of a system with GRUB, which key can be pressed to display the GRUB menu? Shift E V H
93101-5004. When booting, which option can be added to a GRUB configuration line to set or change the root partition at boot time to /dev/sda2? rootpartition={hd0,2} root=/dev/sda2 root={hd0,3} rootpartition=/dev/sda2
94101-5005. Which key combination will enable you to edit the kernel options and then boot when using GRUB Legacy? ESC for editing and then Return to boot v for editing and then Return to boot e for editing and then b to boot v for editing and then b to boot
95101-5006. During the boot process for a virtual machine, what is the next step in the boot process after the kernel has taken over the initialization process and initializes devices? The system BIOS initializes devices. The system is placed in multi-user mode. The boot loader initializes the kernel. The root partition is mounted.
96101-5007. Where in the filesystem will the EFI system partition (ESP) typically be mounted? /etc/efi /efi /sys/efi /boot/efi
97101-5008. When partitioning a disk for a mail server running postfix, which partition/mounted directory should be the largest in order to allow for mail storage? /etc /usr/bin /mail /var
98101-5009. Which option within GRUB Legacy is used to indicate that a root partition contains a non-Linux kernel? initrd non-linux rootnoverify root-win
99101-50010. Which command will output a new GRUB2 configuration file and send the output to the correct location for booting? update-grub > /boot/grub/grub.cfg update-grub boot > /boot/grub.cfg grub-rc.d grub-boot
100101-50011. What is the maximum number of primary partitions available on an MBR partitioning system? 2415
101101-50012. Which command is used to update the links and cache for shared libraries on the system? ldcache cache-update link-update ldconfig
102101-50013. Which command and option is used to update a Debian system to the latest software? apt-update apt-get upgrade dpkg -U apt-cache clean
103101-50014. Which option given to a yum command will install a given package? update configure install get
104101-50015. What is the location of the home directory for the root user? /home/root /home/su /root /
105101-50016. When using rpm2cpio, by default the output is sent to which location? STDOUT The cpio.out file The a.out file The /tmp/cpi.out file
106101-50017. Which partition or directory structure typically holds most of the programs for a Linux system? /etc /usr /home /var
107101-50018. 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? default=linux default=0 default=1 default=other
108101-50019. Which file should you edit when using GRUB2 in order to set things like the timeout? /etc/default/grub /etc/grub/boot /etc/boot/grub.d /grub.d/boot
109101-50020. Which yum option displays the dependencies for the package specified? list deplist dependencies listdeps
110101-50021. Which options for an rpm command will display verbose output for an installation along with progress of the installation? -ivh -wvh --avh --ins-verbose
111101-50022. Which of the following commands adds /usr/local/lib to the LD_LIBRARY_PATH when using BASH shell? set PATH=/usr/local/lib export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib LD_LIBRARY_PATH=/usr/local/lib connectpath LD_LIBRARY_PATH=/usr/local/lib
112101-50023. Which command can be used to download an RPM package without installing it? yumdl yumdownloadonly yumdown yumdownloader
113101-50024. Which command will search for a package named zsh on a Debian system? apt-cache search zsh apt-get search zsh apt-cache locate zsh apt search zsh
114101-50025. Which option within /etc/default/grub is used to configure the default operating system for boot? GRUB_OS GRUB_ON GRUB_DEFAULT DEFAULT_OS
115101-50026. When found in a GRUB configuration file, what does the ro option indicate? Initially mount the root partition as read-only. Mount the kernel as read-only. Start the init program as read-once. Mount the root partition in Raised Object mode.
116101-50027. Within which directory will you find the repositories used by yum? /etc/yum.conf /etc/repos /etc/yum.conf.d /etc/yum.repos.d
117101-50028. Which rpm option can be used to verify that no files have been altered since installation? -V -v --verbose --filesum
118101-50029. Which option for the grub-mkconfig command sends output to a file instead of STDOUT? -stdout --fileout -o -f
119101-50030. The presence of menu.lst within the filesystem typically indicates which condition? GRUB Legacy is in use on the system. GRUB2 is in use on the system. An error has occurred creating the output to menu.lst. The options for rescue boot have been changed.
120101-50031. Which command is used to determine the libraries on which a given command depends? ldconfig librarylist listdeps ldd
121101-50032. Which of the following is true of Linux swap space? Swap is used to hold temporary database tables. Swap is used as additional memory when there is insufficient RAM. Swap is used by the mail server for security. Swap is used to scrub data from the network temporarily.
122101-50033. Which of the following is not typically used to store libraries? /lib /etc/lib /usr/lib /usr/local/lib
123101-50034. Which of the following commands updates the package cache for a Debian system? apt-get cache-update apt-cache update apt-get update apt-get upgrade
124101-50035. Within which file are details of the current package repositories stored on a Debian system? /etc/apt.list /etc/sources.list /etc/apt/sources.list /etc/apt.d/sources.list
125101-50036. Of the following choices, which size would be most appropriate for the /boot partition of a Linux system? Between 100MB and 500MB Between 1GB and 10GB /boot should not be partitioned separately. Less than 5MB
126101-50037. Which of the following commands initializes a physical disk partition for use with Logical Volume Manager (LVM)? lvmcreate pvcreate fvcreate lvinit
127101-50038. Which of the following commands installs GRUB into the MBR of the second SATA disk? grub-install /dev/hdb2 grub-install /dev/sda2 grub-config /dev/sda grub-install /dev/sdb
128101-50039. Which command should be used to make changes to the choices made when a Debian package was installed? dpkg-reconfigure dpkg -r dpkg --reconf apt-get reinstall
129101-50040. Which command is used to create a logical volume with LVM? pvcreate lvmcreate lvcreate volcreate
130101-50041. What is the logical order for creation of an LVM logical volume? Physical volume creation, volume group creation, logical volume creation Physical volume creation, logical volume creation, volume group creation Logical volume creation, physical volume creation, volume group creation LVM creation, format, partition
131101-50042. Which of the Debian package management tools provides a terminal-based interface for management? apt-get dpkg apt-cache aptitude
132101-50043. Which option for yum performs a search of the package cache? seek query --search search
133101-50044. Which command option for rpm can be used to show the version of the kernel? rpm kernel rpm -qa kernel rpm search kernel rpm --list kern
134101-50045. Assuming a menu entry of Debian in your GRUB configuration, which option in /etc/default/grub would set that as the default operating system to boot? GRUB_OS GRUB_OS_DEF GRUB_DEFAULT GRUB_CONF
135101-50046. Which option in /etc/yum.conf is used to ensure that the kernel is not updated when the system is updated? exclude=kernel* exclude-kernel updatekernel=false include-except=kernel
136101-50047. Which command should be run after making a change to the /etc/default/grub file? grub grub-mkconfig grub-inst reboot
137101-50048. Which command searches for and provides information on a given package on a Debian system, including whether or not the package is currently installed? dpkg -i dpkg -s apt-cache apt-info
138101-50049. Which command is used to search for physical volumes for use with LVM? lvmcreate pvcreate lvmdiskscan lvmscan
139101-50050. Which option added to yumdownloader will also download dependencies? --deps --resolve --resdeps -d
140101-50051. Which of the following installs a previously downloaded Debian package? dpkg -i <package name> apt-install <package name> apt-slash <package name> dpkg -U <package name>
141101-50052. A hard drive is reported as hd(0,0) by the GRUB Legacy configuration file. To which of the following disks and partitions does this correspond? /dev/hdb2 /dev/hda0 /dev/disk1 /dev/sda1
142101-50053. Which filesystem format type is used for the EFI System Partition (ESP)? FAT EXT4 NTFS EXT3
143101-50054. Which of the following commands installs extlinux into the /boot partition? extlinux --install /boot extlinux --inst /boot extlinux -boot extlinux /boot install
144101-50055. Which of the following commands mounts /dev/sda1 in the /boot partition? mount /dev/sda /boot mount /boot /dev/sda1 mount /dev/sda1 /boot mount -dev sda1 /boot
145101-50056. 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? Minimal boot record (MBR) Master boot record (MBR) Init sector Master partition table (MPT)
146101-50057. Which option to grub-install will place the GRUB images into an alternate directory? --boot-dir -b -boot --boot-directory
147101-50058. Within which file is a list of the currently mounted filesystems stored? /etc/fstab /etc/curmount /var/spool/files /etc/mtab
148101-50059. Which command is used to activate swap space on a system? mkswap swapon swapact actswap
149101-50060. Which of the following commands displays information about a given physical volume in an LVM setup? pvdisp pvlist pvdisplay pvl
150101-50061. Which of the following commands creates a logical volume with LVM? lvc lvcreate lvlist lvmake
151101-50062. Which of the following commands looks for LVM physical volumes and volume groups involved in an LVM configuration? vgscan lvmscan lvlist pvlist
152101-50063. Which of the following commands is used to display a list of physical volumes involved in LVM? pvdisp pvlist pvscan pvmm
153101-50064. Which option to lvchange sets whether the logical volume is available? -a -b -c -d
154101-50065. When working with a script to create directories, the script is checking to see if srv/vhosts exists. When doing an ls of the root directory, /, you see that it does exist. However, the script does not. What might be the issue? The script is not executable. The script does not have the setuid bit set. The script is using a relative path. The script is owned by root.
155101-50066. 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? An application container can contain only one application whereas a virtual machine can contain many. An application container shares the host kernel whereas a virtual machine can have its own kernel. An application container is used for small applications whereas a virtual machine is used for large applications. The use of application containers is for testing only whereas a virtual machine is used for production.
156101-50067. In addition to including /lib and /usr/lib, where does ldconfig look to find additional directories to incorporate into the library path? /etc/lib.conf /etc/ldconf /etc/lib.cfg /etc/ld.so.conf
157101-50068. 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? Compute Block storage Networking Disk
158101-50069. When working with a system to determine if it is using GRUB or GRUB2, the presence of which file indicates that it is GRUB2? grub.cfg grub.conf menu.lst grub2.conf
159101-50070. 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? System directories MAC address Guest drivers Pilot homing
160101-50071. Which program can be used to deploy an Ubuntu image to a remote cloud provider? dep-image cloud-init init-cloud image-dep
161101-50072. Which file is used as the primary configuration file for the yum package manager? /etc/yum.cfg /etc/yum.d /etc/yum.conf /etc/yum.config
162101-50073. Which of the following commands and options lists all of the files included with a package on a Debian system? apt -L dpkg -L dpkg -f apt-get show
163101-50074. When working with SSH (Secure Shell) keys for a virtual machine cloud deployment, which key is deployed to the virtual machine so that you can connect from the host? The public key The signature file The private key Both the public and private keys
164101-50075. When using a GPT disk, which partition needs to be created for a Linux system to boot? /boot/efi /boot/gpt /gpt /vmgpt
165101-50076. Which option to zypper installs a package? install retr get ref
166101-50077. 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? yum apt dpkg dnf
167101-50078. You need to list the files available on a package on CentOS. Which of the following commands accomplishes this task? repoquery -l pkgquery -l dpkg -L pkglist
168101-50079. You need to create a backup of user home directories including root. Which directory or directories need to be included in the backup? /home /home and /home/root /home and /root /home and /root/home
169101-50080. In which file can you find the unique D-Bus machine ID for a given system? /etc/machine-id /etc/machineID /etc/mch.conf /etc/machine.id.conf
170101-50081. 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? -n -i -v -r
171101-50082. When working with package caches on Debian, you need to determine if the package list is being updated. Which option to apt-cache shows the number of available packages on the system? packagenum status stats liststatus
172101-50083. Which option to grub-install specifies the directory in which the EFI partition is located? --boot-dir --efi --efi-boot --efi-directory
173101-50084. Within which file are mount points for the system stored? /etc/fstab /etc/mtab /etc/partitions.list /etc/disk.conf
174101-50085. Which of the following option sets for rpm lists the files within the package? lf qlp qf eps
175101-50086. When working with a CentOS system, you need to determine the release of a certain package. Which command and option will accomplish this task? dpkg -i yum info yum search apt search
176101-50087. 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? vmx virt envirt vtcapable
177101-50088. Within which file can you configure a filter for devices when using vgscan? lvm.conf vg.conf vgscan.conf lv.cfg
178101-50089. Which of the following swapon options displays information on the size of swap space along with its used space? --list -a --show -h
179101-5001. Assume that youre using the Bash shell and want to prevent output redirects from accidentally overwriting existing files. Which command and option can be used to invoke this behavior? setoutput -f overwrite=no overwrite -n set -C
180101-5002. What command can be used to view the current settings for your environment when using Bash? environment env listenv echoenv
181101-5003. Which command is used to access documentation on the Linux computer for a given command? doc heredoc man manual
182101-5004. Which of the following commands will print various information about the kernel and architecture, along with other details? info --sys man sys sysinfo uname -a
183101-5005. When using sed for a substitution operation, which option must be included so that the substitution applies to the entire line rather than just the first instance? g a r y
184101-5006. Which option for the wc command prints the number of lines given as input? -f -a -l -o
185101-5007. What is the default number of lines printed by the head and tail commands, respectively? 10 for head, 5 for tail 5 for head, 10 for tail 10 for both head and tail 3 for both head and tail
186101-5008. You are attempting to use rmdir to remove a directory, but there are still multiple files and other directories contained within it. Assuming that youre sure you want to remove the directory and all of its contents, what is the command and arguments to remove the directory and all of its contents? rm -f rm -rf rmdir -a rmdir -m
187101-5009. Which command will find directories with names beginning with 2014 located beneath the current directory? find ./ -name "2014" find ./ -type d -name "2014" find / -type d "2014" find ./ -type d -name "2014*"
188101-50010. Which of the following commands will provide the usernames in a sorted list gathered from the /etc/passwd file? cat /etc/passwd | awk -F : '{print $1}' | sort sort /etc/passwd | cut echo /etc/passwd cat /etc/passwd | awk '{print $1}' | sort
189101-50011. Which options to ls will produce output, including hidden (dot) files, in a list that is ordered such that the newest files are at the end of the output? -la -lat -latr -ltr
190101-50012. What will be the result if the touch command is executed on a file that already exists? The access time stamp of the file will change to the current time when the touch command was executed. The file will be overwritten. There will be no change. The file will be appended to.
191101-50013. Which option to both mv and cp will cause the command to prompt before overwriting files that already exist? -f -Z -r -i
192101-50014. Which of the following commands will send the contents of /etc/passwd to both STDOUT and to a file called passwordfile? cat /etc/passwd > passwordfile var /etc/passwd | passwordfile cat /etc/passwd | tee passwordfile echo /etc/passwd | stdout > passwordfile
193101-50015. 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? mkdir -p /usr/local/test/october mkdir /usr/local/test/october mkdir -r /usr/local/test/october mkdir -f /usr/local/test/october
194101-50016. Which option to the cp command will copy directories in a recursive manner? -v -R -Z -i
195101-50017. 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? grep telnet file export
196101-50018. Which command will create an image of the /dev/sda1 disk partition and place that image into a file called output.img? dd if=sda of=/dev/sda1 dd if=output.img of=/dev/sda1 dd if=/dev/sda1 of=output.img echo /dev/sda1 > output.img
197101-50019. What is the default delimiter used by the cut command? Colon Tab Space Comma
198101-50020. Which of the following will unzip and extract the contents of a file that has been tarred and gzipped? tar -zxf <file.tgz> tar -xf <file.tgz> tar -vz <file.tgz> tar -fd <file.tgz>
199101-50021. What command is used to bring a command to foreground processing after it has been backgrounded with an &? bg fore 4g fg
200101-50022. 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? ps auwx | grep apache pgrep apache processlist apache ls -p apache
201101-50023. Which of the following command lines would monitor a single process called nagios in a continuous manner? top -n 1 top -p 23 ps -nagios top -p`pidof nagios`
202101-50024. Users are reporting that various programs are crashing on the server. By examining logs, you see that certain processes are reporting out-of-memory conditions. Which command can you use to see the overall memory usage, including available swap space? tree pgrep uptime free
203101-50025. You are using the Vi editor for changing a file and need to exit. You receive a notice indicating "No write since last change". Assuming you want to save your work, which of the following commands will save your work and exit Vi? :wq :q! dd x
204101-50026. What option is used to change the number of lines of output for the head and tail commands? -l -f -g -n
205101-50027. 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? uptime sysinfo bash ls -u
206101-50028. You need to start a long-running process that requires a terminal and foreground processing. However, you cannot leave your terminal window open due to security restrictions. Which command will enable you to start the process and return at a later time to continue the session? fg bg kill screen
207101-50029. 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? -15-f -9-stop
208101-50030. When working in the Bash shell, you need to redirect both STDOUT and STDERR. Which of the following commands will redirect both STDOUT and STDERR? 1>2 >2 2>&1 >>
209101-50031. Which command can be run to determine the default priority for processes spawned by the current user? prio nice renice defpriority
210101-50032. 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? grep sh /etc/passwd egrep '/*/.sh$' /etc/passwd grep '/*/.=sh$' /etc/passwd egrep '/*/..?sh$' /etc/passwd
211101-50033. Which option to the man command accesses a different level of documentation, for example, system call documentation? man 2 <argument> progman <argument> man --sys <argument> man --list sys
212101-50034. When editing with Vi, which command changes to insert mode and opens a new line below the current cursor location? f a o i
213101-50035. Which kill signal can be sent in order to restart a process? -HUP -RESTART -9-SIG
214101-50036. Which of the following commands will display the last 50 lines of your command history when using Bash, including commands from the current session? bashhist 50 history 50 cat .bash_history tail -f .bash_history
215101-50037. You have backgrounded several tasks using &. Which command can be used to view the current list of running tasks that have been backgrounded? procs plist jobs free
216101-50038. Which of the following commands searches each users .bash_history file to determine whether the user has invoked the sudo command? find /home -name "bash_history" | grep sudo find /home -name ".bash_history" | xargs grep sudo find /home/.bash_history | xargs grep sudo find /home -type history | xargs grep sudo
217101-50039. Which command will watch the Apache log at /var/log/httpd/access.log and continually scroll as new log entries are created? watch /var/log/httpd/access.log tail /var/log/httpd/access.log tail -f /var/log/httpd/access.log mon /var/log/httpd/access.log
218101-50040. 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? lines wc -l newline nl
219101-50041. You receive a file with an .lzma extension. Which command can you use to decompress this file? xz lz gz bzip
220101-50042. Which find command will locate files within the current directory that have been modified within the last 24 hours? find ./ -type f -mtime 0 find ./ -type f -mtime 24 find ./ -type f -mtime +1 find ./ type -f time 24
221101-50043. Which command will move all files with a .txt extension to the /tmp directory? mv txt* tmp move *txt /temp mv *.txt /tmp mv *.txt tmp
222101-50044. Which command prints your current directory? cwd curdur cd pwd
223101-50045. 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? sort zips.txt | uniq -c uniq zips.txt count zips.txt cat zips.txt | uniq -c
224101-50046. When using Bash, how would you execute the last command starting with a certain string, even if that command was not the last one that you typed? Precede the command with ! and then the string to search for. Search for the command in history. Precede the command with a ? and then the string to search for. This is not possible with Bash.
225101-50047. Which command can be used to kill all processes by using their name? killproc killname killall kill -f
226101-50048. Youre working with a large file in Vi and need to search for instances of a string earlier in the file. Which key will search backward in the file? / h ? x
227101-50049. You need to declare a local environment variable that will then be available to child processes. Which of the following commands accomplishes this task? ex echo dec export
228101-50050. 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? cat <CMD> echo $0 echo $SCRIPT echo $PS1
229101-50051. You have downloaded a file with a .gz extension. What is the most likely command that you will use to decompress this file? unz gunzip hunzip gzunzip
230101-50052. You need to remove a single file from a directory if it exists but would like to be prompted for confirmation before doing so. Which option to the rm command causes the command to prompt for confirmation? -a -e -i -o
231101-50053. You need to determine files that are sized above 1GB. Which of the following commands accomplishes this task? find / -size +1G find / -size 10000M find / +1M find / -size +1B
232101-50054. Which option to cpio lists the files as it is operating on them? -l -v -k -s
233101-50055. Which command is used to send contents of a bzip2 archive to STDOUT? bzout bzcat bz2cat bz2echo
234101-50056. You are attempting to find more information about the jobs command, however, an Internet search was not particularly helpful because there are so many Linux-related jobs available. Additionally, you attempted to view the man page for the jobs command but it was not available. Which man page should you use to view more information on jobs? jbs procctl bash ps
235101-50057. 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? nosig nohup nokill noproc
236101-50058. You need to run a command periodically and examine its output in real time. Which of the following commands enables this scenario? mon procmon pgrep watch
237101-50059. You would like to tail a log file to watch entries as they are being added to the log file. In addition, you would also like to work within the same terminal window or SSH (Secure Shell) session to add entries to another file at the same time. Which command can be used to create two sessions within the same terminal window? screen tmux sess termse
238101-50060. You need to kill several processes at once. Rather than writing a complex ps-based command to do so, you can use which other command? pkill psk pskill prock
239101-50061. You are using pgrep to find the process IDs for a given command. However, several other commands seem to also appear. Which option to pgrep enables matching against the full path of the process? -f -d -o -i
240101-50062. You need to determine the exact command that will be run based on your current environment settings. Which command is used for this purpose? what which find ls
241101-50063. An environment variable has been set on login, but you need to remove that variable temporarily for the current session. Which shell built-in command can be used for this purpose? reset unset undo clear
242101-50064. You cannot find the man page of a command but you know the command exists. For example, the alias command exists but there is no man page for it. Which of the following commands could you execute to determine what type of command alias is? type cmd uses listr
243101-50065. Which type of quotes are used so that variables are interpolated within a Bash shell script? Escaped quotes Single quotes Double quotes Side quotes
244101-50066. Which of the following pagers includes the ability to search backward and forward as well as move backward and forward, line-by-line, and page-by-page? more mplus less catch
245101-50067. You have a specialized need for outputting a file in octal format. Which command or series of commands can be used for this purpose? oct cat <file> | octalf od octf
246101-50068. Which option to sha256sum causes the file to be read in binary mode? -i -b -c -p
247101-50069. When operating in command mode, which keys enable you to move the cursor in the Vi editor? a, s, d, f h, j, k, l q, w, e, r z, x, c, v
248101-50070. Which options to xz are functionally equivalent to the xzcat program? decompress and output output and format decompress and stdout stdout and format
249101-50071. Which environment variable is used to control the default text editor used on a Linux system? EDITOR EDIT TEXTEDITOR DEFAULT_EDITOR
250101-50072. You need to examine the seventh section of the manual page for regular expressions, or regex, on a Linux system. Which command displays the seventh section of the manual? man regex -7 man regex 7 man --page 7 regex man 7 regex
251101-50073. Which of the following commands reprioritizes an already running process? nice renice chnice altnice
252101-50074. The fgrep command is equivalent to running the grep command with which option? -f -F -a -E
253101-50075. Which of the following regular expressions would find the pattern Steve or steve in a file when used with grep? '[sS]teve' '[S]*teve' '^[Ss]teve' '[$Steve]'
254101-50076. Which of the following commands shows the currently running processes and their resource usage in real time, updated every few seconds? nice ps top procs
255101-50077. 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? gzip bzip2 xz tar
256101-50078. You need to match files that begin with 201, as in 2017, 2018, 2019. Which of the following wildcard specifications can be used? 201? 201$ 201@ 201]
257101-50079. You need to break a large file into smaller pieces. Which command can be used for this purpose? cut split dice rem
258101-50080. When examining the output from top, you see that a process has a value in the PR column of 20. To what does the PR column refer? The process ID The process utilization The process priority The processor core on which the process is executing
259101-50081. You need to cut or remove eight lines from a file while editing with Vi. Which combination should be used for this purpose? d7 d8 r8 x7
260101-50082. Which command is used in order to decompress a file that has been compressed with xz? unxz dexz xzu u2xz
261101-50083. Which of the following commands uses 128-bit message digests? sha256sum sha512sum sh128sum md5sum
262101-50084. You have several files that need to be combined, with a line from each file being appended onto a single line. Which command can be used for this purpose? paste comb appfile combo
263101-50085. You need to run a command that is not inside your current path. Which of the following represents the typical method for doing so? Use a fully qualified path for the command. Set the PATH environment variable to include the correct path. Restart the shell environment. Restart the computer for settings to take effect.
264101-50086. Which signal is used by default by the pkill command? SIGKILL SIGTERM SIGHUP SIGKS
265101-50087. 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? -s -a -l -r
266101-50088. Which option to the bunzip2 command sends output to STDOUT, much like the bzcat command? -s -o -c -d
267101-5001. Which option best describes the following output from the ls -la command: lrwxrwxrwx. 1 root root 35 Jul 8 2014 .fetchmailrc -> .configs/fetchmail/.fetchmailrc? It is a file called .fetchmailrc that is linked using a symbolic link. It is a file called .configs/fetchmail/.fetchmailrc that is owned by lrwxrwxrwx. It is a directory called .fetchmailrc that is owned by user Jul. It is a local directory called .configs/fetchmail/.fetchmailrc.
268101-5002. Assuming that a USB disk contains a single partition and is made available on /dev/sdb, which command mounts the disk in /media/usb? mount /dev/sdb1 /media/usb usbconnect /dev/sdb0 /media/usb mount /dev/sdb0 /media/usb usbmount /dev/sdb1 /media/usb
269101-5003. Which option within a partition-mounting command will cause the partition to be mounted in such a way as to prevent execution of programs? execless stoprun noexec norun
270101-5004. When working with partitions on disk, you see the type 0x82. Which type of partition is this? Linux Linux swap NTFS FAT
271101-5005. Which partition type should be created for a Linux system, non-swap partition? 828384L
272101-5006. 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? which what whatis when
273101-5007. Which of the following commands will correctly change the group ownership of the file called a.out to users? chgrp users a.out chgrp a.out users groupchg a.out users grpchg users a.out
274101-5008. Another administrator made a change to one of the local scripts used for administrative purposes. The change was also immediately reflected in your copy of the script. However, when examining the file with ls, you see that it appears to be a normal file. What is the likely cause of such a scenario? The file was executed after edit. The administrator copied the file to yours. Your file is a hard link to the original. The file has been restored from backup.
275101-5009. Which of the following commands shows the usage of inodes across all filesystems? df -i ls -i du -i dm -i
276101-50010. Youre running fsck on an ext3 filesystem, and the process is taking longer than expected and requiring input from the administrator to fix issues. What option could be added to fsck next time so that the command will automatically attempt to fix errors without intervention? -o -V -y -f
277101-50011. Which of the following describes a primary difference between ext2 and ext3 filesystems? ext3 was primarily a bug fix update to ext2. ext3 includes journaling for the filesystem. ext3 completely changed the tools needed for management of the disks. ext3 filesystems have no significant differences.
278101-50012. Which option to umask will display the permissions to be used in a Portable Operating System Interface (POSIX) format? -P -p -S -v
279101-50013. Which option to ln creates a symlink to another file? -sl -s -l --ln
280101-50014. Which of the following commands can be used if you need to locate various elements of a given command, such as its binaries and man pages? whatis find whereis ls
281101-50015. Which option in /etc/updatedb.conf will remove a path from inclusion in the results? PRUNEPATHS EXCLUDEPATHS INCLUDEEXCLUDE SEPARATEPATH
282101-50016. According to the filesystem hierarchy standard (FHS), what is the correct location for site-specific data for a server? /etc /var /tmp /srv
283101-50017. Which of the following commands enables the sticky bit for a user on a file called homescript.sh? chmod +sticky homescript.sh chmod 755 homescript.sh chmod u+s homescript.sh chown u+sticky homescript.sh
284101-50018. Which option to the mount command will mount all filesystems that are currently available in /etc/fstab? -g -a -r -y
285101-50019. Which command is used to format a swap partition? fdisk mkswap formatswap format -s
286101-50020. Which command and option is used to display the number of times that a filesystem has been mounted? tune2fs -l cat /etc/fstab mount -a less /etc/fsmnt
287101-50021. Which option to xfs_metadump displays a progress indicator? -g -p -f -v
288101-50022. 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? du df ls locate
289101-50023. Which file contains information about the filesystems to mount, their partitions, and the options that should be used to mount them? /etc/filesystems /etc/mounts /etc/fstab /srv/mounts
290101-50024. According to the FHS, what is the proper mount point for removable media? /etc /srv /tmp /media
291101-50025. Which file contains information on currently mounted filesystems, including their mount options? /etc/mtab /etc/fstab /tmp/files /etc/filesystems
292101-50026. Which option to umount will cause the command to attempt to remount the filesystem in read-only mode if the unmounting process fails? -o -r -f -v
293101-50027. The umask reports as 022. What is the permission that will be in effect for a newly nonexecutable created file? u+rw, g+r, w+r 75522a+r
294101-50028. The locate command is reporting out-of-date information. Which command should be run in order to have the locate command update its database? locatedb -u locate -u updatedb updatelocate
295101-50029. Which shell built-in command can be used to determine what command will be run? type when find help
296101-50030. Which option to chown recursively changes the ownership? -f -R -a -m
297101-50031. Which of the following represents the correct format for the /etc/fstab file? <directory> <device> <type> <options> <device> <type> <options> <device> <type> <options> <directory> <dump> <fsck> <filesystem> <mount point> <type> <options> <dump> <pass>
298101-50032. Which of the following commands is used to identify the UUID for partitions? blkid ls find cat
299101-50033. Which of the following describes the priority order for configuration files with systemd? Files in /etc/, files in /run, and then files in /lib Files in /run, files in /etc/, and then files in /lib Files in /lib, files in /run, and then files in /etc Files in /lib, files in /etc, and then files in /run
300101-50034. Which options to the fsck command will find and automatically assume that it should repair errors that it finds? -y -vy -my -xy
301101-50035. Which option to mke2fs sets the type of filesystem to be created? -F -a -t -e
302101-50036. Which of the following files is the default configuration file for the autofs automounter? /etc/autofs /etc/auto.master /etc/autofs.conf /etc/automounter.conf
303101-50037. Which of the following commands is used to create an ISO filesystem? mkiso mkfsiso mkisofs isofs-mk
304101-50038. Which option to the tune2fs command sets the maximum mount count before the system will automatically run fsck on the partition on boot? -b -c -C -a
305101-50039. Which option to the mount command can be used to simulate the mount process without actually mounting the filesystem? -q -v -l -f
306101-50040. When viewing /proc/mounts, you see a filesystem with the letters ro in the fourth column. To what do the letters ro refer? relative option realtime option read-only relative-only
307101-50041. Which option to dumpe2fs displays the bad blocks for a given partition? -bb -C -b -f
308101-50042. Which of the following filesystem types features copy-on-write? ext3 ext4 FAT Btrfs
309101-50043. Which of the following commands displays filesystem geometry for an XFS filesystem? xfsinfo xfs_info xfs -info xfs --info
310101-50044. Which of the following commands can be used to display information such as the UUID for partitions on a system? blkid blockdev devinfo uuidinfo
311101-50045. Which option to the umount command will cause it to unmount only filesystems of the specified type? -v -f -t -a
312101-50046. Which command causes unwritten data to be written to disk immediately? write wrnow connwrite sync
313101-50047. Which option to xfs_check is used to verify a filesystem that is stored in a file? -v -a -f -d
314101-50048. Which option to debugfs causes the filesystem to be opened in read-write mode rather than the default read-only? -rw -w -r -n
315101-50049. Which daemon is responsible for monitoring Self-Monitoring, Analysis, and Reporting Technology (SMART)-compatible hard drives? smartmon smarty sartd smartd
316101-50050. When checking an ext3 filesystem, which option to the fsck.ext3 command causes it to run the check even if the filesystem is apparently marked as clean? f -m -a -c
317101-50051. 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? -b 4M -g 1M -i 1M -k 1028K
318101-50052. You see the word defaults within /etc/fstab. Which options are encompassed within the defaults? ro, exec, auto rw, suid, dev, exec, auto, nouser, async rw, exec, auto, nouser, async rw, exec, nouser, async, noauto, suid
319101-50053. Which of the following commands creates a btrfs subvolume? btrfs create subvolume btrfs subvolume create btrfs sv create btrfs svcreate
320101-50054. Which of the following options to xfsdump sets the maximum size for files to be included in the dump? -p -s -z -b
321101-50055. Which option to the tune2fs command sets the behavior when a filesystem error occurs? -f -d -e -k
322101-50056. The /etc filesystem has been mounted as a read-only for a recovery process. You need to mount another partition. Which option to the mount command causes it to not write to /etc/mtab? -a -m -b -n
323101-50057. Which of the following commands deactivates swap space? swapoff swap -off unmountswap uswap
324101-50058. Within the [mount] section of a systemd mount unit, which directive specifies the location for mounting the chosen filesystem? Where= Location= List= Dest=
325101-50059. Which of the following commands can be used to format a FAT filesystem? mkfs.fat mkfs -f mkfs --fat mkfat
326101-50060. Which of the following commands adds a journal to an existing ext2 filesystem? tune2fs -jrn e2fs -x tune3fs tune2fs -j
327101-50061. Which of the following commands creates a snapshot of a btrfs subvolume? btrfs subvolume snapshot btrfs snapshot --create btrfs create snapshot btrfs --create
328101-50062. Which option to xfs_repair will force log zeroing even if there may be metadata within the log? -L -v -d -V
329101-50063. Which of the following commands mounts a filesystem in read-only mode? mount read-only mount --read mount -o ro mount -or
330101-50064. When you are using tune2fs to set an extended option such as stripe_width, which command-line option is needed to signify that an extended option follows? -extend -E -e -f
331101-50065. Which utility is used for formatting GPT disks? gdisk gptdisk gpdisk pgdisk
332101-50066. What is the maximum size of a partition on an MBR-formatted disk? 2TB 4TB 2MB 512TB
333101-50067. Which option to mkfs.ext4 can be used to prevent reservation of blocks for system or superuser use? -r 0 -r 0b -m 0 -m 0b
334101-50068. What is the default time in seconds that xfs_fsr will use to reorganize a filesystem? 36007200864005150
335101-50069. A user who is a member of the custom admins group is attempting to read the contents of a file but is not the owner of the file. Rather than granting sudo access to this file, what is another way to grant read access, assuming that the file is currently marked with 640 permissions? Note that you should choose the most appropriate answer to fulfill the need while minimizing additional privileges. Grant root access to the user. Run chmod 777 on the file. Use chgrp to change group ownership to admins. Use chown to change the ownership of the file to the individual user.
336101-50070. Which option to lsblk shows empty devices? -g -a -r -y
337101-50071. The /media/ mount point is used frequently for which types of devices? Hard drives SAN NAS USB devices
338101-50072. Which of the following commands is used to format an exFAT filesystem? mkexfat mkfat.ex mkfs.exfat mkfs2.exf
339101-50073. Which of the following commands is used for debugging an XFS-formatted filesystem? debug_xfs xfs_debug xfs_db debugxfs
340101-50074. Youre working with an ext2 filesystem and you suspect the superblock is corrupted. Which option to e2fsck enables you to specify the location of an alternate superblock? -B -s -b -o
341101-50075. Which option to df shows the numerical output in larger size increments, like MB, GB, TB, and so on rather than in bytes? -h -m -n -s
342101-50076. Assuming the use of Bash for the shell, in which file can the umask be set such that the file creation mask is set automatically on login? /etc/umask.def /etc/profile /etc/bash.d/umask /etc/bash.umask
343101-50077. You need to enable two users to edit the same file but keep their own individual changes. Another administrator suggested making a symbolic link for the file. Is a symbolic link the appropriate solution for this scenario and, if not, what is? A symbolic link is not appropriate because the users cannot keep their own changes. A copy would be a better option. A symbolic link is appropriate here because each user can access the file, assuming write permissions. A symbolic link is not appropriate given that the users will not have permissions on symbolic links. Linux cannot meet the scenario described. A symbolic link is appropriate because symbolic links have the ability to do version control, thus enabling the scenario.
344101-50078. 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? locate <user> find -uid <uid> find -user <user> fileloc -user <user>
345101-50079. You need to update the locate database. Which of the following commands is used for this purpose? updatedb locatedb updlocdb locdbupd
346101-50080. Which option to lsblk shows the UUID of each filesystem? u -f -o -a
347101-50081. Which option to mkswap checks the device for bad blocks before formatting? -b -B -c -d
348101-50082. You are examining output from ls -la and one file contains the permissions -rwSrw-r--. To what does the S refer? Specific execute Source formatting Selective execution Sticky bit
349101-50083. 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? chmod 2775 sync.sh chmod u+s sync.sh chmod 2755 sync.sh chmod 4755 sync.sh
350101-50084. Which of the following commands finds files with a .sql extension across the entire filesystem? find . -name "*.sql" find /root -ext sql find / -name "*.sql" find / -exten ".sql"
351101-50085. When working with /etc/fstab to mount by UUID, which syntax is correct as the first column in /etc/fstab, assuming a UUID denoted by <UUID>? <UUID> UUID=<UUID> ID=<UUID> GPT=<UUID>
352101-50086. Which option to du displays information on inode usage? -i -h --inodes -d
353101-50087. Which of the following find commands will look for files that are over 1GB in size? find -size +1G find -size 1GB find -fssize +1GB find -filesize +1G
354101-50088. 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? Copy the libraries. Create a symbolic link. Move the libraries. Create a script to synchronize the libraries between the two locations with rsync.