Practice Tests - Chap 1: System Mgmt (Domain 1) Flashcards
(113 cards)
2- Which option given at boot time within the GRUB2 boot entry configuration will boot the system into single‐user mode?
- single-user
- su
- single
- root
single
The keyword single given on the Linux kernel command line will boot the system into single‐user mode. The other options are not valid.
6- When running with a Unified Extensible Firmware Interface (UEFI) system, to which partition will the EFI system partition typically be mounted?
- /etc/efi
- /efi
- /sys/efi
- /boot/efi
/boot/efi
The ESP is typically mounted at /boot/efi.
7- 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
mount /dev/sdb1 /media/usb
The mount command is used to mount drives in Linux. The source and destination mount point are expected as arguments. Drive partitions begin at number 1, making the first partition number 1.
8- What is one reason 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 drivers are not required for most devices.
- The use of an initrd.img means 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.
Support for the device has been compiled directly into the kernel.
If a working device does not appear in lsmod, it typically means the kernel has a driver already loaded by virtue of being compiled into the kernel itself rather than loaded through a module. The use of systemd (option A) or an initrd.img (option B) would have no effect.
9- Which option to rmmod will cause the module to wait until it’s no longer in use to unload the module?
- -test
- -b
- -w
- -unload
-w
The -w option causes the module to wait until it’s no longer needed prior to unloading. The other options are not valid for rmmod.
11- What is the maximum number of primary partitions available on an MBR partitioning system?
- Two
- Four
- One
- Five
Four
MBR‐based disks can be partitioned with up to four primary partitions, one of which can be further partitioned or extended into logical partitions.
12- When working with disk partitions through a tool like fdisk, you see the type 0x82. Which type of partition is this?
- Linux
- Linux swap
- NTFS
- FAT
Linux swap
0x82 is Linux swap, while 0x83 is Linux. NTFS is 0x07, and FAT is 0.0c.
13- Which file should you edit when using GRUB2 in order to define or set options like the timeout?
- /etc/default/grub
- /etc/grub/boot
- /etc/boot/grub.d
- /grub.d/boot
/etc/default/grub
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.
14- Which option for the grub2-mkconfig command sends output to a file instead of STDOUT?
- -stdout
- –fileout
- -o
- -f
-o
The -o option can be used to specify a destination file to which output will be sent instead of to STDOUT. The other options listed in this question do not exist.
15- Of the following choices, which size would be most appropriate for the /boot partition of a Linux system?
- At least 1 GB.
- Between 100 MB and 200 MB.
- /boot should not be partitioned separately.
- Less than 5 MB.
At least 1 GB.
The recommended /boot partition size has increased and it is now recommended to be at least 1 GB. The used space within /boot will increase as more kernels are added, such as during an upgrade process. The size should not be set too small because upgrade processes can fail if the partition becomes full.
17- Which of the following commands installs GRUB into the MBR of the second SATA disk?
- grub2-install /dev/hdb2
- grub2-install /dev/sda2
- grub2-config /dev/sda
- grub2-install /dev/sdb
grub2-install /dev/sdb
The grub2-install command is used to install GRUB onto a disk. The second SATA disk would be /dev/sdb, therefore making option D the correct answer.
19- 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
Physical volume creation, volume group creation, logical volume creation
Physical volumes are initialized first, followed by volume group creation, and then logical volume creation.
21- Which command is used to change details of a logical volume?
- lvmcreate
- pvcreate
- lvchange
- lvmscan
lvchange
The lvchange command configures details about a logical volume, including whether that volume appears to be available.
22- 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
/dev/sda1
GRUB Legacy begins counting at 0 and separates the disk letter and partition with a comma, therefore 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.
24- Which option given to a yum command will install a given package?
- update
- configure
- install
- get
install
The yum install command will install a given package. The update option will update a package. The other options listed do not exist.
26- When working with an rpm package file and using rpm2cpio, by default the output is sent to which location?
- STDOUT
- The file cpio.out
- The file a.out
- The file /tmp/cpi.out
STDOUT
rpm2cpio sends its output to STDOUT by default, and therefore that output needs to be redirected to a file in most cases.
27- 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 has no significant differences.
ext3 includes journaling for the filesystem.
The addition of journaling in ext3 increased filesystem reliability and performance.
28- According to the Filesystem Hierarchy Standard (FHS), what is the correct location for add‐on application software packages?
- /etc
- /var
- /tmp
- /opt
/opt
The /opt hierarchy is used for add‐on application software packages. The /etc hierarchy is configuration information, while /var is also data files but variable files such as mail files. The /tmp directory is for temporary files. Because each path begins with a /, it is considered an absolute path.
30- Which option of the systemctl command will change a service so that it runs on the next boot of the system?
- enable
- startonboot
- loadonboot
- start
enable
The enable option configures the service to start on boot. The start option, option D, is used to start a service immediately. The other options are not valid for this command.
31- Which option to xfs_metadump displays a progress indicator?
- -g
- -p
- -f
- -v
-g
The -g option displays progress of the dump. The other options listed do not exist.
35- How many SCSI devices are supported per bus?
- 7 to 15
- 2 to 4
- 12
- 4
7 to 15
SCSI supports 7 to 15 devices per bus, depending on the type of SCSI. The lsscsi command displays device information.
36- 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
-r
The -r option causes umount to attempt to remount in read‐only mode. The -v option is verbose mode, and the -f option forces the operation. The -o option does not exist.
37- 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˃
- ˂device˃ ˂directory˃ ˂type˃ ˂options˃ ˂dump˃ ˂fsck˃
˂device˃ ˂directory˃ ˂type˃ ˂options˃ ˂dump˃ ˂fsck˃
The proper order is the device (UUID or partition) followed by the directory to mount that device, followed by its type and options, and then the dump and fsck settings.
39- The xfs_info command is functionally equivalent to which command and option?
- xfs_test -n
- xfs_list
- tunexfs -i
- xfs_growfs -n
xfs_growfs -n
The xfs_info command is equivalent to xfs_growfs -n.