Practice Tests - Chap 1: System Mgmt (Domain 1) Flashcards

(113 cards)

1
Q

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
A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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
A

/boot/efi

The ESP is typically mounted at /boot/efi.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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
A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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.
A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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
A

-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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

11- What is the maximum number of primary partitions available on an MBR partitioning system?

  • Two
  • Four
  • One
  • Five
A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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
A

Linux swap

0x82 is Linux swap, while 0x83 is Linux. NTFS is 0x07, and FAT is 0.0c.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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
A

/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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

14- Which option for the grub2-mkconfig command sends output to a file instead of STDOUT?

  • -stdout
  • –fileout
  • -o
  • -f
A

-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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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.
A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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
A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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
A

Physical volume creation, volume group creation, logical volume creation

Physical volumes are initialized first, followed by volume group creation, and then logical volume creation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

21- Which command is used to change details of a logical volume?

  • lvmcreate
  • pvcreate
  • lvchange
  • lvmscan
A

lvchange

The lvchange command configures details about a logical volume, including whether that volume appears to be available.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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
A

/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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

24- Which option given to a yum command will install a given package?

  • update
  • configure
  • install
  • get
A

install

The yum install command will install a given package. The update option will update a package. The other options listed do not exist.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

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
A

STDOUT

rpm2cpio sends its output to STDOUT by default, and therefore that output needs to be redirected to a file in most cases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

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.
A

ext3 includes journaling for the filesystem.

The addition of journaling in ext3 increased filesystem reliability and performance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

28- According to the Filesystem Hierarchy Standard (FHS), what is the correct location for add‐on application software packages?

  • /etc
  • /var
  • /tmp
  • /opt
A

/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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

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
A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

31- Which option to xfs_metadump displays a progress indicator?

  • -g
  • -p
  • -f
  • -v
A

-g

The -g option displays progress of the dump. The other options listed do not exist.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

35- How many SCSI devices are supported per bus?

  • 7 to 15
  • 2 to 4
  • 12
  • 4
A

7 to 15

SCSI supports 7 to 15 devices per bus, depending on the type of SCSI. The lsscsi command displays device information.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

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
A

-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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

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˃
A

˂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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

39- The xfs_info command is functionally equivalent to which command and option?

  • xfs_test -n
  • xfs_list
  • tunexfs -i
  • xfs_growfs -n
A

xfs_growfs -n

The xfs_info command is equivalent to xfs_growfs -n.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
40- Which of the following commands will create a btrfs filesystem on the first SATA drive? * mkfs /dev/sda1 * mkfs.btrfs /dev/sda * mkfs.btr2fs /dev/sda1 * mkfs -b /dev/sda
**mkfs.btrfs /dev/sda** The mkfs.btrfs command is used to create btrfs filesystems on block storage and does not require the drive to be partitioned.
26
42- Which command can be used to change the partitioning scheme for a disk, such as to change the size of existing partitions without deleting them? * resize2fs * parted * mkfs * rfdisk
**parted** The parted command can be used to resize partitions in such a way. The mkfs command is not used for this purpose, and the other two options do not exist.
27
43- Which of the following commands will mount a USB device at /dev/sdb1 into the /mnt/usb directory, assuming a VFAT filesystem for the USB drive? * mount -t vfat /dev/sdb1 /mnt * usbmount /dev/sdb1 /mnt/usb * mount -t vfat /dev/sdb1 /mnt/usb * mount -t usb /dev/sdb1 /mnt/usb
**mount -t vfat /dev/sdb1 /mnt/usb** The VFAT filesystem is known as vfat to the mount command, and the other elements of the mount command are standard.
28
44- Which option within gdisk will change the partition name? * n * b * v * c
**c** The c option in gdisk is used to change the partition name. The n option creates a new partition, the v option verifies the disk, and the b option creates a backup of GUID Partition Table (GPT) data to a file.
29
45- Which command on a systemd-controlled system would place the system into single‐user mode? * systemctl stop * systemctl isolate rescue.target * systemctl single-user * systemctl runlevel one
**systemctl isolate rescue.target** The isolate option is used to move the system into the target specified, thereby making option B the correct one. The stop option stops a service. The other options do not exist.
30
46- Which options to fsck can be used to check all filesystems listed in /etc/fstab while excluding the root partition? * -NR * -AR * -X * -C
**-AR** The -A option checks all filesystems in /etc/fstab, while the -R option excludes the root filesystem.
31
47- Which option in /etc/fstab sets the order in which the device is checked at boot time? * options * dump * fsck * checkorder
**fsck** The fsck option, which is represented as a number in the /etc/fstab file, sets the order in which the device is checked at boot time.
32
48- Which file is used to indicate the local time zone on a Linux server? * /etc/timez * /etc/timezoneconfig * /etc/timezone * /etc/localtz
**/etc/timezone** The file /etc/timezone is used to indicate the local time zone. The other files listed as options do not exist.
33
49- Within which directory will you find files related to the time zone for various regions? * /etc/timezoneinfo * /etc/zoneinfo * /var/zoneinfo * /usr/share/zoneinfo
**/usr/share/zoneinfo** Within the /usr/share/zoneinfo hierarchy, you will find information on the various regions and time zones available. The files within this hierarchy can be symlinked to /etc/localtime.
34
50- Which option best describes the following, gathered with 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.
**It is a file called .fetchmailrc that is linked using a symbolic link.** The listing shows a symbolic linked file created with the ln command located in the current directory, linked to .configs/fetchmail/.fetchmailrc. The file is owned by the root user and root group and was created on July 8, 2014.
35
51- Which environment variable controls the format of dates and times, such as a 12‐hour or 24‐hour formatted clock? * LOCALE_DATE * DATE_FORMAT * LC_TIME * LC_DATE
**LC_TIME** The LC_TIME environment variable is used to control the display and behavior of the date and time and can be changed to a different locale in order to achieve the desired display and behavior of date and time formatting. The other options shown for this question do not exist.
36
53- Which command can be used to view the available time zones on a system? * tzd * /etc/locale * timedatectl * tzsel
**timedatectl** The timedatectl command includes a list-timezones subcommand to show known time zones. The tzsel command does not exist, but there is a similar command called tzselect that will, by default, display a step‐by‐step menu to select a time zone. The eventual output will include a region/time‐zone line, such as America/Chicago, as output.
37
54- Which option to lspci is used to display both numeric codes and device names? * -numdev * -n * -nn * -devnum
**-nn** The -nn option displays both numbers and device names, thus making option C correct. The -n option (option B) displays only numbers. The other two options do not exist.
38
55- Which of the following values for the LANG variable will configure the system to bypass locale translations where possible? * LANG=COMPAT * LANG=NONE * LANG=C * LANG=END
**LANG=C** Setting LANG=C is an alias for POSIX compatibility and will cause programs to bypass locale translations. The other options shown for LANG are not valid.
39
56- If you need to temporarily reconfigure all locale variables and settings for a given session, which environment variable can be used? * LC_LIST * LC_GLOBAL * LC_ALL * ALL_LOCALE
**LC_ALL** The LC_ALL variable can be used to set environment variables such as the locale and will override others. This can be used when there is a need for a temporary change. The other variables listed here are not used for this purpose and are not created by default.
40
57- Which of the following commands will set the systemwide time zone to 'America/Los_Angeles'? * ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime * ln -sf America/Los_Angeles ; /etc/localtime * ln -sd /etc/localtime /usr/share/timezone/America/Los_Angeles * ln -sf /etc/localtime /usr/share/zoneinfo/America/Los_Angeles
**ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime ** The ln command is used for this purpose, and the -s option creates a symbolic or soft link, while -f forces or overwrites the destination. The other options and order of commands are not valid.
41
58- Which locale‐related variable is used for currency‐related localization? * LC_MONE * LC_CURRENCY * LC_MONETARY * LC_CURR
**LC_MONETARY** The LC_MONETARY variable is used by certain programs to determine the localization for currency.
42
60- Which option to the date command can be used to set the date and time? * date -f * date -t * date --change * date -s
**date -s** The -s option sets the date and time as specified within the command. If there is another means to automatically set the date, it may override the change. For example, if ntpd or chrony is running, one of those processes may alter the date even after it has been set with date -s.
43
61- Which function of the hwclock command will set the hardware or BIOS clock to the current system time? * -w * -s * -a * -m
**-w** The -w option sets the hardware clock to the current system time. The -s option does the opposite, setting the system time to the hardware clock. There is no -a or -m function for hwclock.
44
62- Which of the following commands sets the hardware or BIOS clock to UTC based on the current system time? * hwclock --systohc --utc * hwclock --systohc --localtime * hwclock --systohc * hwclock --systoutc
**hwclock --systohc --utc** --systohc will set the hardware clock according to the current system time. The use of --utc is required in order to ensure that the time is set to UTC. If --utc is omitted, the time will default to whatever was used last time the command was run, which could be UTC but might be local time instead. Therefore, the best option is A.
45
63- Which of the following commands shows the current default route without performing DNS lookups on the IP address(es) involved? * netstat -rn * netstat -n * netstat -r * netstat -f
**netstat -rn** The netstat command can be used for this purpose, and the -r option displays the current routes. The addition of -n prevents DNS lookups, which can help with performance.
46
65- Which of the following commands adds a default gateway of 192.168.1.1 for interface eth0? * route add default gateway 192.168.1.1 eth0 * eth0 --dg 192.168.1.1 * route add default gw 192.168.1.1 eth0 * route define eth0 192.168.1.1
**route add default gw 192.168.1.1 eth0** The route command is used for this purpose, and adding a route is done with the add option. The default gateway is added using the default gw keywords followed by the IP address of the gateway and the adapter.
47
66- Which option for the host command will query for the authoritative name servers for a given domain? * -t ns * -t all * -ns * -named
**-t ns** The host command enables changing of the query type with the -t option. Using ns as the type will query for the name servers for a given domain. There is no all type, and the other options are also invalid.
48
67- Which option for the ping command enables you to choose the interface from which the ICMP packets will be generated? * -i * -I * -t * -a
**-I** The -I option enables the choice of interface. A lowercase -i option sets the interval, while -a indicates an audible ping. Finally, -t enables a TTL‐based ping only.
49
70- Which command can be used to listen for netlink messages on a network? * ip monitor * netlink -a * ip netlink * route
**ip monitor** The ip command with the monitor option/subcommand will display netlink messages as they arrive. There is no netlink subcommand for ip, and the route command will not work for this purpose.
50
71- Which of the following configuration lines in /etc/nsswitch.conf causes a lookup for group information to first use local files and then use LDAP? * group: files ldap * lookup: group [local ldap] * group: [local ldap] * group: localfiles ldap
**group: files ldap** The syntax is database: ˂databasename˃ with additional database names separated by spaces, as shown in the correct option for this question.
51
72- Which of the following dig commands sends the query for example.com directly to the server at 192.168.2.5 rather than to a locally configured resolver? * dig example.com @192.168.2.5 * dig -t 192.168.2.5 example.com * dig -s 192.168.2.5 example.com * dig server=192.168.2.5 example.com
**dig example.com @192.168.2.5** The @ symbol is used to indicate a server to which the query will be sent directly. This can be quite useful for troubleshooting resolution problems by sending the query directly to an authoritative name server for the domain. Of the other options, -t sets the type, and the other options are not valid.
52
74- Which of the following configuration lines will set the DNS server to 192.168.1.4 using /etc/resolv.conf? * dns 192.168.1.4 * dns-server 192.168.1.4 * nameserver 192.168.1.4 * name-server 192.168.1.4
**nameserver 192.168.1.4** The configuration option is nameserver, and the value for the option is the IP address of the desired name server. Several options affect how name resolution is performed, such as the number of attempts and timeout. See resolv.conf(5) for more information.
53
75- Which of the following commands adds a route to the server for the network 192.168.51.0/24 through its gateway 192.168.22.1? * route add -net 192.168.51.0 netmask 255.255.255.0 gw 192.168.22.1 * route add -net 192.168.51/24 gw 192.168.22.51 * route -net 192.168.51.0/24 192.168.22.1 * route add 192.168.51.1 -n 192.168.22.0//255.255.255.0
**route add -net 192.168.51.0 netmask 255.255.255.0 gw 192.168.22.1** The route command can be used for this purpose, and the syntax includes the network range, denoted with the -net option, followed by the word netmask and the masked bits, followed by the letters gw and the IP address of the gateway. The other options shown are invalid for a variety of reasons, including missing keywords and options and order.
54
77- 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
**/var** 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.
55
78- Which of the following commands will change the default gateway to 192.168.1.1 using eth0? * ip route default gw 192.168.1.1 * ip route change default via 192.168.1.1 dev eth0 * ip route default gw update 192.168.1.1 * ip route update default 192.168.1.1 eth0
**ip route change default via 192.168.1.1 dev eth0** The ip route command can be used for this purpose, and its syntax uses a change command and the via keyword. The same operation could be completed with the route command but would require deleting the existing gateway first and then re‐adding a new default gateway.
56
80- Assume that you want to enable local client services to go to hosts on the network without needing to fully qualify the name by adding the domain for either example.com or example.org. Which option in /etc/resolv.conf will provide this functionality? * search * domain * local-domain * local-order
**search** The search option is used for this purpose and can be provided with multiple domain names, each separated by a space or tab. The domain option is valid within /etc/resolv.conf but does not allow for multiple domain names.
57
81- Which of the following commands prevents traffic from reaching the host 192.168.1.3? * route add -host 192.168.1.3 reject * route -nullroute 192.168.1.3 * route add -null 192.168.1.3 * route add -block 192.168.1.3
**route add -host 192.168.1.3 reject** The route command can be used for this purpose, and in the scenario described, a reject destination is used for the route. The other options shown are invalid because they use invalid options to the route command.
58
82- Which of the following commands will emulate the ping command in Microsoft Windows, where the ping is sent for four packets and then the command exits? * ping -n 4 * ping -t 4 * ping -p 4 * ping -c 4
**ping -c 4** The -c option provides the count of the number of pings to send. The -n option specifies numeric output only, while -p specifies the pattern to use for the packet content. Finally, the -t option sets the TTL.
59
84- Which of the following commands should be executed after running ip route change? * ip route flush cache * ip route reload * ip route cache reload * ip route restart
**ip route flush cache** The ip route flush cache command should be executed after changing the routes. The other commands shown for this question are not valid.
60
85- Which option should be used to send a DNS query for an SPF record with dig? * -t txt * -t spf * -t mx * -t mailspf
**-t txt** SPF records are stored in the txt record type in DNS, thereby making -t txt the correct option for this. Of the other answers, only -t mx is valid; it returns the mail exchangers for the given domain.
61
86- When you’re viewing the available routes using the route command, one route contains flags UG while the others contain U. What does the letter G signify in the route table? * The G signifies that the route is good. * The G signifies that the route is unavailable. * The G signifies that this is a gateway. * The G signifies that the route is an aggregate.
**The G signifies that this is a gateway.** The G signifies a gateway within the route table.
62
87- Which of the following commands requests a zone transfer of example.org from the server at 192.168.1.4? * dig example.org @192.168.1.4 axfr * dig example.org @192.168.1.4 * dig example.org @192.168.1.4 xfer * dig example.org #192.168.1.4 xfer
**dig example.org @192.168.1.4 axfr** The axfr type is a zone transfer, and the @ symbol signifies the server to which the query will be sent. There is no xfer type, and option B is just a normal query for the domain sent to the specified server.
63
88- Which yum option displays the dependencies for the package specified? * list * deplist * dependencies * listdeps
**deplist** 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.
64
89- Which of the following commands can be used to display the current disk utilization? * df * du * diskutil * diskuse
**df** The df command displays information on disk usage and can help with planning disk utilization over time. For example, if you note that disk utilization is increasing significantly, preparations can be made to bring more disks online or even to change the log rotation schedule such that logs are rotated faster, thereby freeing up space.
65
93- Which option to sysctl displays all values and their current settings? * -a * -b * -d * -c
**-a** The -a option displays all values and their current settings for sysctl. The -b option is binary and displays values without any newlines. The -d option is an alias for -h, which is help display. There is no -c option. The sysctl options can also be found in /etc/sysctl.conf.
66
95- Which command is used to determine the modules on which another module depends? * modinfo * modlist * modprobe * tracemod
**modinfo** The modinfo command provides information on a given kernel module. You can use modinfo to find out the parameters needed for a given module and the modules on which it depends, among other information. The modprobe command is used to load a module. There is no tracemod or modlist command.
67
97- Which option to modprobe will remove a module and attempt to remove any unused modules on which it depends? * -v * -r * -d * -f
**-r** The -r option removes the named kernel modules and attempts to remove any modules on which the named module depends, where possible. The -d option sets the root directory for modules, while -v is verbose and -f forces the module to load.
68
98- 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
**/etc/modprobe.d** The /etc/modprobe.d directory is used for storing configuration information related to modules such as that used for blacklisting purposes and also for other configuration information such as udev and module options.
69
99- When working with a CentOS 6 system, which command is used to create the initial RAM disk? * mkinit * dracut * mkraminit * mkinitfs
**dracut** The dracut command is used to create the initial RAM disk for newer systems and has replaced the legacy mkinitrd command used for the same purpose.
70
100- If you’d like a value set with the sysctl command to take effect on boot, within which file should you place the variable and its value? * /etc/sysctl.cfg * /etc/sysctl.conf * /lib/sysctl * /var/sysctl.conf
**/etc/sysctl.conf** Variables and values placed in /etc/sysctl.conf will take effect on boot. The other files listed are not valid.
71
101- Which of the following options to modprobe will show the dependencies for a module? * --show-deps * --show-depends * --deps * --list-depends
**--show-depends** The --show-depends option displays the dependencies for a given module. The other options are not valid for the modprobe command.
72
102- Which options for the rpm command will display verbose output for an installation along with progress of the installation? * -ivh * -wvh * --avh * --ins-verbose
**-ivh** 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.
73
103- When working with UEFI, which of the following commands changes the boot order for the next boot? * efibootmgr -c * efibootmgr -b -B * efibootmgr -o * efibootmgr -n
**efibootmgr -n** The -n option changes the boot order for the next boot only and boots from the specified partition. The -b along with -B modifies and then deletes the option. The -o option sets the boot order. The -c option creates a boot number.
74
104- Which bootloader can be used to boot from ISO with ISO9660 CD‐ROMs? * ISOLINUX * EFIBOOT * ISOFS * BOOTISO
**ISOLINUX** ISOLINUX provides a means by which CD‐ROMs formatted as ISO 9660 can be booted. It’s very common to have live CDs or rescue/recovery CDs that use ISOLINUX for boot. The other bootloaders are not valid for this purpose or don’t exist.
75
105- When using UEFI, which of the following files can be used as a bootloader? * shim.uefi * shim.efi * shim.fx * efi.shim
**shim.efi** Due to the decidedly insecure decisions made with the design of Microsoft’s UEFI, a shim is often needed to enable Linux to boot on a system with UEFI. The file shim.efi can be used as an initial bootloader for this purpose.
76
106- Which of the following commands, executed from within the UEFI shell, controls the boot configuration? * bootcfg * bcfg * grub-install * grcfg
**bcfg** The bcfg command within the UEFI shell is used to configure bootloaders on a UEFI‐based system. The command can accept various parameters to configure how the bootloader and kernel will load on boot. Of the other commands shown, grub-install is valid but not within the UEFI shell.
77
108- When using PXE boot, which file must exist within /tftpboot on the TFTP server for the system that will use PXELINUX for its bootloader? * pxelinux.tftp * pxelinux.boot * pxelinux.conf * pxelinux.0
**pxelinux.0** The file pxelinux.0 must exist within /tftpboot on the TFTP server in order for a system to use PXELINUX for booting. The other files are not valid or necessary for PXELINUX. Once booted, PXE boot can boot using an NFS‐mounted filesystem where the filesystem is physically hosted on a different computer.
78
109- Which option to grub-install will place the GRUB images into an alternate directory? * --boot-dir * -b * -boot * --boot-directory
**--boot-directory** The --boot-directory option enables you to specify an alternate location for GRUB images rather than the default /boot. The other options shown for this question are not valid.
79
110- 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
**grubx64.efi** The shim.efi bootloader loads another bootloader, which is grubx64.efi by default. The other options are not valid filenames for the purpose described.
80
111- Part of the EXT tools, which option to the mke2fs command sets the type of filesystem to be created? * -f * -a * -t * -e
**-t** The -t option sets the filesystem type as ext2, ext3, or ext4. The mke2fs command is typically symlinked from /sbin/mkfs.ext2, /sbin/mkfs.ext3, and /sbin/mkfs.ext4. The -f option forces mke2fs to create a filesystem. The -a and -e options do not exist.
81
112- Which file is used to store a list of encrypted devices that are to be mounted at boot? * /etc/cryptdev * /etc/crypttab * /etc/encrtab * /etc/fsencrypt
**/etc/crypttab** The /etc/crypttab file contains the filesystems and devices that are encrypted such as those with Linux Unified Key Setup (LUKS). The other file locations do not exist by default and are not related to this question.
82
113- 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
**apt-cache search zsh** 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, while the apt-search command does not exist. The apt.conf file, found either in /etc/apt/ or /etc/, contains several options for how apt behaves.
83
114- Within which directory will you find the repositories used by yum? * /etc/yum.conf * /etc/repos * /etc/yum.conf.d * /etc/yum.repos.d
**/etc/yum.repos.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.
84
116- 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
**rw, suid, dev, exec, auto, nouser, async** A filesystem with the word defaults for its mount options will be mounted read‐write (rw), suid, with the ability to have executables (exec). The filesystem will be auto‐mounted (auto), but users will not be able to mount it (nouser). Character and block special devices will be interpreted (dev), and operations on the disk will be performed in an asynchronous manner (async).
85
117- Which of the following options to xfsdump sets the maximum size for files to be included in the dump? * -p * -s * -z * -b
**-z** The -z option sets the maximum size for files to be included in the dump. The -b option sets the block size but is not related to what is being asked for in this scenario. The -s option sets the path for inclusion in the dump, and -p sets the interval for progress indicators.
86
118- Which partition type is used to indicate a software RAID array, such as an array built with mdadm? * 0xmd * ‐x‐ * 0xRD * 0xFD
**0xFD** A partition type of 0xFD is used for software RAID arrays. This can be set or viewed using a tool such as fdisk. The other options shown are not valid partition types.
87
119- When working with World Wide Identifiers (WWIDs), within which directory on a Red Hat server will you find symlinks to the current /dev/sd device names? * /dev/disk/wwid * /dev/wwid * /dev/disk/by-id * /dev/sd.wwid
**/dev/disk/by-id** The /dev/disk/by-id directory contains symbolic links to /dev/sd, such as /dev/sda. Because WWIDs can be used to identify a device across systems, they are often used within the context of SANs. The other directories listed as options do not exist.
88
120- Which of the following commands displays information about a given physical volume in an LVM setup? * pvdisp * pvlist * pvdisplay * pvl
**pvdisplay** 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.
89
121- When viewing information in /dev/disk/by-path using the command ls -l, which of the following filenames represents a LUN from Fibre Channel? * /dev/fc0 * pci-0000:1a:00.0-fc-0x500601653ee0025f:0x0000000000000000 * pci-0000:1a:00.0-scsi-0x500601653ee0025f:0x0000000000000000 * /dev/fibre0
**pci-0000:1a:00.0-fc-0x500601653ee0025f:0x0000000000000000** Logical unit numbers (LUNs) that contain the characters fc are those found through Fibre Channel. Therein lies the difference between options B and C, where option C contains the letters scsi, which would usually represent a local disk. The other options are not valid.
90
122- Which of the following commands displays path information for LUNs? * luninfo -a * ls -lun * multipath -l * dm-multi
**multipath -l** The multipath command is used for administration of devices such as LUNs and can be used for finding the path to LUNs for a server, such as in a SAN configuration. Related, the multipathd daemon checks for paths that have failed. The other commands are not valid, with the exception of ls: it is valid, but the option shown is not related to LUNs but rather is a combination of various flags to the ls command.
91
123- Which command is used to remove unused filesystem blocks from thinly provisioned storage? * thintrim * thtrim * fstrim * fsclean
**fstrim** The fstrim command is used to remove blocks that are not in use. The fstrim command is frequently used in a SAN configuration to give back unused storage to the SAN. The fstrim command can also be used with solid‐state drives for the same purpose. The other commands shown are not valid.
92
124- When 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
**-E** The -E option signals that an extended option follows, such as stripe_width. The -f option forces an operation but should not be necessary for this solution, and the -e option sets the behavior on error. There is no -extend option.
93
125- Which option to mdadm is used to create a new array? * --create * --start * --begin * --construct
**--create** The --create option enables creation of a RAID array that will use md. The typical argument is the /dev/mdN device along with the level. The other options listed are not valid for mdadm.
94
126- Information about logical volumes can be found in which of the following directories? * /dev/lvinfo * /dev/map * /dev/mapper * /dev/lvmap
**/dev/mapper** The /dev/mapper directory contains information about multipath devices such as logical volumes. The other directories are not valid.
95
127- Which option to mdadm watches a RAID array for anomalies? * --mon * --watch * --monitor * --examine
**--monitor** The --monitor option is used to actively watch an array for issues such as disk failure. The monitoring can be done as a daemon and run in the background, thereby alerting when there is an issue.
96
128- When running mdadm in monitor mode, which option within /etc/mdadm.conf sets the destination for email if an issue is discovered? * MAILTO * MAILADDR * MAILFROM * MAILDEST
**MAILADDR** The MAILADDR option sets the destination address for mail about RAID events that are noted by mdadm when in monitor mode.
97
129- When using the ip command, which protocol family is used as the default if not otherwise specified? * tcpip * ip * inet * arp
**inet** The ip command defaults to the inet family if not otherwise specified with the -f option. The command will attempt to guess the correct family and fall back to inet. The other families listed as options for this command are not valid for use with the ip command. AI's answer: * inet is the default protocol family used by the ip command when no family is explicitly specified with the -f option * The inet family corresponds to IPv4 addresses and is equivalent to using ip -f inet or ip -4 for IPv4 operations * Other protocol families like inet6 (IPv6), link (MAC addresses), or bridge must be explicitly specified if needed, but inet/IPv4 is always the default
98
132- Which option to the ss command shows the process IDs associated with the socket? * -l * -a * -p * -f
**-p** The -p option shows the process IDs associated with a given socket within the ss output. The -a option is all sockets, while -l is listening sockets. The -f option is used to specify the protocol family.
99
133- On a Debian system, within which directory hierarchy will you find configuration information and directories to hold scripts to be run when an interface is brought up or taken down? * /etc/netconf * /etc/netconfig * /etc/net.conf.d * /etc/network
**/etc/network** The /etc/network directory contains information on network interfaces and contains directories that then further contain scripts to be executed when interfaces are brought up or down. The other directories listed do not exist.
100
134- Which of the following characters are valid for hostnames in /etc/hosts? * Alphanumerics, minus, underscore, and dot * Alphanumerics, minus, and dot * Alphanumerics and dot * Alphanumerics
**Alphanumerics, minus, and dot** Only alphanumerics, minus sign or dash, and dot are valid for hosts in /etc/hosts.
101
135- Which of the following configuration lines in /etc/resolv.conf enables debugging? * debug * options debug * option debug * enable-debug
**options debug** Options within /etc/resolv.conf are preceded with the options keyword followed by one or more options such as debug.
102
137- Which of the following commands will send the output of the grub2-mkconfig command to the correct location for booting? * grub2-mkconfig --output=/boot/grub2/grub.cfg * grub2-mkconfig --file=/boot/grub2.menu * grub2-mkconfig --file=/boot/grub.lst * grub2-mkconfig --output=/boot/menu.lst
**grub2-mkconfig --output=/boot/grub2/grub.cfg** The --output option configures the location for output of the command instead of STDOUT.
103
138- Which PXE Linux binary file is required for booting from HTTP or FTP? * lpxelinux.0 * pxelinux.http * netpxlinux.0 * netpxe.0
**lpxelinux.0** The file lpxelinux.0 contains the necessary code to support booting from HTTP and FTP.
104
140- Which of the following describes a difference between vmlinuz and vmlinux? * vmlinuz is used for zOS systems, and vmlinux is used for x86 architecture. * vmlinuz is used for 64-bit systems, and vmlinux is used for 32-bit systems. * vmlinuz is compressed, whereas vmlinux is not. * vmlinuz contains additional binary code for certain systems.
**vmlinuz is compressed, whereas vmlinux is not.** The vmlinuz file has been compressed and therefore consumes less disk space than vmlinux. Both contain the Linux kernel in binary format.
105
141- Which of the following is the location in which kernel modules are stored? * /usr/modules * /modules * /usr/lib/modules/{kernel-version} * /usr/modules/{kernel-version}
**/usr/lib/modules/{kernel-version}** Modules are stored in /usr/lib/modules/{kernel-version}.
106
142- Which rpm option can be used to verify that no files have been altered since installation? * -V * -v * --verbose * --filesum
**-V** 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.
107
143- Which of the following is not typically used to store shared libraries? * /lib * /etc/lib * /usr/lib * /usr/local/lib
**/etc/lib** The /etc/lib directory is not typically associated with library files and does not typically exist on a Linux system unless manually created. The other options either contain system libraries or can be used for that purpose.
108
144- 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
**apt-get update** 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 option or update option to apt-cache. The upgrade option is used to update the system’s packages, not the cache.
109
145- You need to update the configuration files for package repositories. Within which directory are details of the current package repositories stored on a Debian system? * /etc/apt.list * /etc/sources.list * /etc/apt/sources.list.d/ * /etc/apt.d/sources.list
**/etc/apt/sources.list.d/** The /etc/apt/sources.list.d/ directory contains repositories for Debian packages. The other file and directory locations do not exist by default.
110
146- Which of the following commands is used to change the keyboard layout settings? * keybrdctl * keyctl * localectl * localemap
**localectl** The localectl command is used to view and configure settings such as the keyboard layout for a given locale. The other commands listed do not exist.
111
147- Which of the following directories contains configuration files related to networking? * /etc/netdevices/ * /etc/netcfg/ * /etc/config/network/ * /etc/sysconfig/network-scripts/
**/etc/sysconfig/network-scripts/** The directory /etc/sysconfig/network-scripts contains files related to network configuration. It is not preferable to edit these files directly any longer but rather to use commands such as nmcli and nmtui through the Network Manager. The other paths do not exist by default.
112
148- You need to change the label that has been applied to a filesystem. The filesystem is formatted as EXT4. Which EXT tool can be used to change the label? * e2label * e4label * fslabel.ext4 * fslabel
**e2label** The e2label command changes the filesystem label. The other commands do not exist.
113