Title: IT / LPIC 101 Q/A / 2 Linux installation and Package Management

Q: A Serial Advanced Technology Attachment (SATA) disk will use which of the following identifiers?
/dev/hdX
/dev/sataX
/dev/sdX
/disk/sataX
A: C. SATA disks are addressed as /dev/sdX, just like a Small Computer System Interface (SCSI ) disk. /dev/hdX is a traditional ATA disk. The other options do not exist.

Q: Which option given at boot time within the GRUB configuration will boot the system into single-user mode?
single-user
su
single
root
A: C. The keyword single, given on the Linux kernel command line, will boot the system into single-user mode. The other options are not valid.

Q: During boot of a system with GRUB, which key can be pressed to display the GRUB menu?
Shift
E
V
H
A: A. The Shift key, if pressed when control has first been handed to GRUB, will cause the GRUB menu to be displayed.

Q: 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
A: B. The root=/dev/sda2 option will cause the given kernel to load /dev/sda2 for its root partition. The rootpartition option is not valid, and the format of the root={hd0,3} is not valid in this context.

Q: 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
A: C. You begin an editing session with an e when the boot option is highlighted. You can then make changes and, when done, press b to boot the system.

Q: 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.
A: D. The root partition is mounted after device initialization. System services, including multi-user mode, start after the root partition is mounted. The other two options, A and C, take place prior to the kernel-initializing device drivers. This process is essentially the same for virtual machines as it is for physical machines.

Q: Where in the filesystem will the EFI system partition (ESP) typically be mounted?
/etc/efi
/efi
/sys/efi
/boot/efi
A: D. The ESP is typically mounted at /boot/efi.

Q: 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
A: D. The partition containing /var should be the largest for a mail server because mail spools are stored within this hierarchy. The /etc/ hierarchy is usually small, as is /usr/bin. The /mail directory does not exist by default.

Q: Which option within GRUB Legacy is used to indicate that a root partition contains a non-Linux kernel?
initrd
non-linux
rootnoverify
root-win
A: C. The rootnoverify option is used to specify a non-Linux kernel, one that GRUB should not attempt to load. The initrd option is used for specifying the initial RAM disk, making option A incorrect. The remaining options, B and D, are not valid options for GRUB.

Q: 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
A: A. The update-grub command sends its output to STDOUT. Therefore, you must redirect using > and send that output to the correct file. The other options are not valid for this purpose. Options C and D are not valid commands, and option B contains invalid options as well as an invalid location for the destination file.

Q: What is the maximum number of primary partitions available on an MBR partitioning system?
2
4
1
5
A: B. MBR-based disks can be partitioned with up to four primary partitions, one of which can be further partitioned or extended into logical partitions.

Q: Which command is used to update the links and cache for shared libraries on the system?
ldcache
cache-update
link-update
ldconfig
A: D. The ldconfig command updates the current shared library cache and list. ldconfig reads /etc/ld.so.conf and incorporates any changes found within it. The other commands listed as options for this question do not exist.

Q: 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
A: B. The upgrade option for apt-get will upgrade the system to the latest version of software for packages already installed. The apt-update command does not exist, nor does the -U option to dpkg. The apt-cache command is used to work with the package cache.

Q: Which option given to a yum command will install a given package?
update
configure
install
get
A: C. The yum install command will install a given package. The update option will update a package. The other options listed do not exist.

Q: What is the location of the home directory for the root user?
/home/root
/home/su
/root
/
A: C. Root’s home directory is /root on a Linux system. While the /home directory does exist, there is no root or su user within that hierarchy by default. The / directory is the root of the filesystem but not the root’s home directory.

Q: 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
A: A. rpm2cpio sends its output to STDOUT by default, and therefore that output needs to be redirected to a file in most cases.

Q: Which partition or directory structure typically holds most of the programs for a Linux system?
/etc
/usr
/home
/var
A: B. The /usr hierarchy contains many of the programs that run on a Linux system. Other notable directories for programs are /bin and /sbin.

Q: 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
A: B. GRUB begins its count at 0 and in this scenario there are two operating systems. Therefore, because Linux is first in the configuration file its number would be 0, which is then sent to the default= option.

Q: 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
A: A. The /etc/default/grub file can be used for this purpose. You may also edit /boot/grub/grub.cfg, but this was not an option given for this question.

Q: Which yum option displays the dependencies for the package specified?
list
deplist
dependencies
listdeps
A: B. The deplist option displays the dependencies for the given package. The list option displays information about a specific package while the other two options are not valid.

Q: Which options for an rpm command will display verbose output for an installation along with progress of the installation?
-ivh
-wvh
--avh
--ins-verbose
A: A. The -ivh options will install a file using rpm, displaying both verbose output and hash marks for progress. The other options presented do not exist or do not accomplish the specified task.

Q: 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
A: B. The export command is used to set environment variables in BASH. The other commands are not valid for this purpose.

Q: Which command can be used to download an RPM package without installing it?
yumdl
yumdownloadonly
yumdown
yumdownloader
A: D. The yumdownloader utility will download an RPM package but not install it. The yumdownloader utility is part of the yum-utils package. The other options listed for this question do not exist.

Q: 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
A: A. The apt-cache command is used to work with the package cache and the search option is used to search the cache for the supplied argument, in this case zsh. The apt-get command is used to work with packages themselves, and the apt search command does not exist.

Q: Which option within /etc/default/grub is used to configure the default operating system for boot?
GRUB_OS
GRUB_ON
GRUB_DEFAULT
DEFAULT_OS
A: C. The GRUB_DEFAULT option, when in the /etc/default/grub file, is used to configure the operating system that will boot by default. The other options do not exist in this context.

Q: 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.
A: A. The ro option, which is the default for GRUB, will initially mount the root partition as read-only and then remount as read-write.

Q: Within which directory will you find the repositories used by yum?
/etc/yum.conf
/etc/repos
/etc/yum.conf.d
/etc/yum.repos.d
A: D. Configuration files related to the repositories for yum are located in /etc/yum.repos.d. Of the other options, /etc/yum.conf is a file and not a directory, and the other directories do not exist.

Q: Which rpm option can be used to verify that no files have been altered since installation?
-V
-v
--verbose
--filesum
A: A. The -V or --verify option will check the files in a given package against versions (or checksums) in the package database. If no files have been altered, then no output is produced. Note that output may be produced for files that are changed during installation or for other reasons. Note also the use of an uppercase V for this option as opposed to the lowercase v for verbose.

Q: Which option for the grub-mkconfig command sends output to a file instead of STDOUT?
-stdout
--fileout
-o
-f
A: C. The -o option can be used to specify a destination file to which output will be sent instead of STDOUT. The other options listed in this question do not exist.

Q: 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.
A: A. The menu.lst and grub.conf files are used in GRUB Legacy, that is, prior to GRUB 2. This therefore makes option B incorrect.

Q: Which command is used to determine the libraries on which a given command depends?
ldconfig
librarylist
listdeps
ldd
A: D. The ldd command will list the libraries on which the command’s argument depends.

Q: 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.
A: B. Swap space is used when there is insufficient RAM memory on a system.

Q: Which of the following is not typically used to store libraries?
/lib
/etc/lib
/usr/lib
/usr/local/lib
A: B. The /etc/lib directory is not typically associated with library files and does not usually exist on a Linux system unless manually created. The other options either contain system libraries or can be used for that purpose.

Q: 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
A: C. The apt-get update command will cause the package cache to be updated by retrieving the latest package list from the package sources. There is no cache-update or update option to apt-cache. The upgrade option is used to update the system’s packages and not the cache.

Q: 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
A: C. The sources.list file located in /etc/apt contains the list of repositories for Debian packages. The other file locations do not exist by default.

Q: 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
A: A. The /boot partition will typically be much less than 500MB but should not be undersized. The used space within /boot will increase as more kernels are added, such as during an upgrade process. Therefore, even though the recommended size is up to 500MB, experience proves that a larger partition is helpful, possibly 1GB to 2GB.

Q: Which of the following commands initializes a physical disk partition for use with Logical Volume Manager (LVM)?
lvmcreate
pvcreate
fvcreate
lvinit
A: B. The pvcreate command initializes a physical partition for future use as a logical volume with LVM.

Q: 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
A: D. The grub-install command is used to install GRUB onto a disk and the second SATA disk would be /dev/sdb, making option D correct.

Q: 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
A: A. The dpkg-reconfigure program will cause an already installed package to be reconfigured or changed. The -r option for dpkg removes a package, making option B incorrect. There is no reconf option for dpkg or reinstall option for apt-get.

Q: Which command is used to create a logical volume with LVM?
pvcreate
lvmcreate
lvcreate
volcreate
A: C. The lvcreate command is used to create logical volumes with LVM. The pvcreate command initializes physical volumes prior to creating logical volumes. The commands in the other two options for this question do not exist.

Q: 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
A: A. Physical volumes are initialized first, followed by volume group creation, and then logical volume creation.

Q: Which of the Debian package management tools provides a terminal-based interface for management?
apt-get
dpkg
apt-cache
aptitude
A: D. aptitude provides the terminal-based interface rather than the standard command-line interface of the other tools listed in this question.

Q: Which option for yum performs a search of the package cache?
seek
query
--search
search
A: D. The search option performs a search of various fields such as the package name and description.

Q: 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
A: B. The rpm -qa kernel command will show the kernel version. You can also use uname -r for the same purpose.

Q: 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
A: C. The GRUB_DEFAULT option in /etc/default/grub will set the operating system to boot by default.

Q: 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
A: A. The exclude option can be used to exclude certain packages. The argument accepts wildcards, and therefore excluding all kernel* updates will create the desired behavior.

Q: Which command should be run after making a change to the /etc/default/grub file?
grub
grub-mkconfig
grub-inst
reboot
A: B. The grub-mkconfig command should be run after making a change to the /etc/default/grub file so that a new configuration file can be created with the changed option(s).

Q: 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
A: B. The -s option to dpkg searches for the given package and provides information about its current status on the system. The apt-cache command is not used for this purpose, and the -i option for dpkg installs a package. The apt-info command does not exist.

Q: Which command is used to search for physical volumes for use with LVM?
lvmcreate
pvcreate
lvmdiskscan
lvmscan
A: C. The lvmdiskscan command looks for physical volumes that have been initialized for use with LVM.

Q: Which option added to yumdownloader will also download dependencies?
--deps
--resolve
--resdeps
-d
A: B. The --resolve option will download the dependencies of the package being downloaded. The other options shown within this question are not valid for the yumdownloader command.

Q: 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>
A: A. The -i option to dpkg will install a previously downloaded package. The other commands don’t exist, and the -U option for dpkg does not exist.

Q: 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
A: D. GRUB Legacy begins counting at 0 and separates disk letter and partition with a comma, making 0,0 the first partition on the first disk. Options A and C are not the first disk on the system, and option B contains a nonexistent partition.

Q: Which filesystem format type is used for the EFI System Partition (ESP)?
FAT
EXT4
NTFS
EXT3
A: A. ESP uses the legacy FAT filesystem type for its underlying format. There is a specification for how the ESP partition must be created on top of the FAT format for boot loaders and kernel images. Note that the partition is typically FAT32 but can be FAT16 if only Linux systems will reside on the drive.

Q: Which of the following commands installs extlinux into the /boot partition?
extlinux --install /boot
extlinux --inst /boot
extlinux -boot
extlinux /boot install
A: A. The --install option is used followed by the partition to which extlinux will be installed for boot.

Q: 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
A: C. The format for the mount command is [partition] [target], making option C correct. The other options are not valid because the arguments are in the wrong order.

Q: 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)
A: B. The master boot record (MBR) is the first sector on a disk and contains information about the structure of the disk. If the MBR becomes corrupt, all data on the disk may be lost. The other options shown for this question are not valid.

Q: Which option to grub-install will place the GRUB images into an alternate directory?
--boot-dir
-b
-boot
--boot-directory
A: D. The --boot-directory option enables you to specify an alternative location for GRUB images rather than the default /boot. The other options shown for this question are not valid.

Q: Within which file is a list of the currently mounted filesystems stored?
/etc/fstab
/etc/curmount
/var/spool/files
/etc/mtab
A: D. The /etc/mtab file lists the currently mounted filesystems. The /etc/fstab file lists overall filesystems for the computer but does not distinguish between mounted or unmounted filesystems. The other options listed for this question do not exist.

Q: Which command is used to activate swap space on a system?
mkswap
swapon
swapact
actswap
A: B. The swapon command enables swap space, making it available for use as virtual memory. The mkswap command formats the space. The other two commands are not valid.

Q: Which of the following commands displays information about a given physical volume in an LVM setup?
pvdisp
pvlist
pvdisplay
pvl
A: C. The pvdisplay command shows information about a given physical volume. You can use pvdisplay to view the device on which the PV is built along with the extent size of the PV. The other commands shown are not valid.

Q: Which of the following commands creates a logical volume with LVM?
lvc
lvcreate
lvlist
lvmake
A: B. The lvcreate command is used to create a logical volume from previously created physical devices and volume groups. Using lvcreate is the final of three steps in the process for using LVM prior to actually using the logical volume.

Q: Which of the following commands looks for LVM physical volumes and volume groups involved in an LVM configuration?
vgscan
lvmscan
lvlist
pvlist
A: A. The vgscan command looks for both physical volumes and volume groups related to an LVM configuration. The vgscan command is run at system startup but can also be run manually. The other commands are not valid.

Q: Which of the following commands is used to display a list of physical volumes involved in LVM?
pvdisp
pvlist
pvscan
pvmm
A: C. The pvscan command displays a list of physical volumes on a given server. The PVs displayed are those that have been initialized with pvcreate for use with LVM.

Q: Which option to lvchange sets whether the logical volume is available?
-a
-b
-c
-d
A: A. The -a or --activate option sets whether or not the logical volume can be used. There is no -b or -c option, and the -d option is used for debugging.

Q: 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.
A: C. The script is using a relative path to look for srv/vhosts rather than /srv/vhosts with an absolute path back to the root directory of the system.

Q: 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.
A: B. Application containers share kernel and other resources with the underlying OS and use a container daemon to communicate between the host OS and the application container. Virtual machines have their own kernel and are self-contained machines running on top of a host OS or host kernel. Linux containers also provide a containerized virtual machine–like experience but are distinct from application containers.

Q: 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
A: D. The /etc/ld.so.conf directory is used in addition to /lib and /usr/lib to configure library locations. The other paths and files shown do not exist.

Q: 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
A: A. Among these options, compute resources, such as adding more CPUs, would be the most likely option. Adding RAM might also be warranted, but that was not one of the available options for this question. There is no indication in the question that the network is slow, and there is no indication that adding disk space or block storage (which are essentially the same thing in this context) will help.

Q: 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
A: A. GRUB 2 uses grub.cfg whereas GRUB uses menu.lst and grub.conf, making option A the correct choice.

Q: 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
A: B. The MAC address will be unique for each virtual machine deployed using the image. Guest drivers would usually not be unique to an individual virtual machine but might be unique on a per-template or per-image basis. System directories are not unique per virtual machine, and there is no such thing as pilot homing in this context.

Q: Which program can be used to deploy an Ubuntu image to a remote cloud provider?
dep-image
cloud-init
init-cloud
image-dep
A: B. The cloud-init program is available on Ubuntu and other distributions and can be used to deploy images to popular cloud providers.

Q: 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
A: C. The yum package manager configuration file is /etc/yum.conf. The other files listed do not exist.

Q: 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
A: B. The -L option to dpkg lists the files included with a given package. The -f option to dpkg shows a field from a package entry, and the other options do not exist.

Q: 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
A: A. The public key is deployed to the authorized_keys file on each image, and the private key is used from the host to connect to each virtual machine. There is no reason to deploy the private key to the virtual machine in order to make a connection to it.

Q: When using a GPT disk, which partition needs to be created for a Linux system to boot?
/boot/efi
/boot/gpt
/gpt
/vmgpt
A: A. The /boot/efi partition needs to exist for the EFI partition and is typically sized 100MB to 250MB, though that size can vary.

Q: Which option to zypper installs a package?
install
retr
get
ref
A: A. The install option, or simply in, will install a package on a system that uses zypper for package management. Among the other options listed, the ref option refreshes the repository. The other options are not valid with zypper.

Q: 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
A: D. A system running Fedora 22 will use the dnf package manager by default. The yum package manager is used on CentOS and Red Hat, and apt and dpkg are used on Debian.

Q: 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
A: A. The repoquery command with the -l option is used for this purpose. The dpkg -L command is appropriate for this purpose on Debian systems. The other commands do not exist.

Q: 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
A: C. Home directories for normal users are in /home and the home directory for root is at /root, making option C correct.

Q: 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
A: A. The /etc/machine-id file contains the unique identifier for a given machine.

Q: 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
A: A. The -n option tells ldconfig to process only the directories given on the command line. The -i option ignores the auxiliary cache file. The -v option is verbose, and -r changes the root directory from which to begin processing.

Q: 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
A: C. The stats option shows total package names along with other information about the package cache. The other options are not valid for use with apt-cache.

Q: Which option to grub-install specifies the directory in which the EFI partition is located?
--boot-dir
--efi
--efi-boot
--efi-directory
A: D. The --efi-directory option is used to specify the location of the EFI partition, typically /boot/efi.

Q: Within which file are mount points for the system stored?
/etc/fstab
/etc/mtab
/etc/partitions.list
/etc/disk.conf
A: A. The /etc/fstab file contains a list of partitions for the system. The /etc/mtab file contains currently mounted partitions. The other files do not exist.

Q: Which of the following option sets for rpm lists the files within the package?
lf
qlp
qf
eps
A: B. The options qlp list the files in an rpm package. The other options are not valid for the purpose described in the question.

Q: 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
A: B. Among the commands and options shown, the info option to yum is used for this purpose. The dpkg and apt package managers are used on Debian systems and thus would not be appropriate for a CentOS system.

Q: 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
A: A. The presence of the string vmx in the flags section indicates that an Intel processor is capable of virtualization. This extension is called svm on an AMD architecture.

Q: Within which file can you configure a filter for devices when using vgscan?
lvm.conf
vg.conf
vgscan.conf
lv.cfg
A: A. The lvm.conf file is a primary configuration file for LVM. Within lvm.conf, typically found in /etc/ or /etc/lvm/, you can set things like filters for devices to include or exclude from the vgscan process. The other files shown are not valid.

Q: Which of the following swapon options displays information on the size of swap space along with its used space?
--list
-a
--show
-h
A: C. The --show option displays information about the swap spaces on the computer, including how much swap is currently being used. The -a option activates all swap spaces. There is no --list option, and -h displays help.