CompTIA Linux+ Practice Tests: Exam XK0-004
()
About this ebook
The best practice test preparation for the foundational CompTIA Linux+ certification exam
If you’re preparing for this all-important exam, turn to CompTIA Linux+ Practice Tests. The book covers the 5 objective domains, PLUS one additional 90-question practice exam, for a total of 1,000 practice test questions. Readers will also get one year of FREE access to the online test bank where they can study and work through the questions, reinforcing their skills and knowledge. Study for the CompTIA Linux+ certification with Sybex and get the advantage of exam day confidence.
This book covers:
- Hardware and System Configuration
- Systems Operation and Maintenance
- Security
- Linux Troubleshooting and Diagnostics
- Automation and Scripting
Linux is a UNIX-based operating system originally created by Linus Torvalds with the help of developers around the world. Developed under the GNU General Public License, the source code is free. Because of this, Linux is viewed by many organizations and companies as an excellent, low-cost, secure alternative to expensive OSs, such as Microsoft Windows. The CompTIA Linux+ exam tests a candidate's understanding and familiarity with the Linux Kernel. As the Linux server market share continues to grow, so too does demand for qualified and certified Linux administrators.
Read more from Steve Suehring
CompTIA Linux+ Practice Tests: Exam XK0-005 Rating: 0 out of 5 stars0 ratingsLPIC-1 Linux Professional Institute Certification Practice Tests: Exam 101-500 and Exam 102-500 Rating: 0 out of 5 stars0 ratingsCompTIA Linux+ and LPIC Practice Tests: Exams LX0-103/LPIC-1 101-400, LX0-104/LPIC-1 102-400, LPIC-2 201, and LPIC-2 202 Rating: 0 out of 5 stars0 ratings
Related to CompTIA Linux+ Practice Tests
Related ebooks
CompTIA Security+ Review Guide: Exam SY0-501 Rating: 1 out of 5 stars1/5CompTIA Project+ Practice Tests: Exam PK0-004 Rating: 0 out of 5 stars0 ratingsCompTIA PenTest+ Certification For Dummies Rating: 0 out of 5 stars0 ratingsCompTIA Security+ Practice Tests: Exam SY0-601 Rating: 0 out of 5 stars0 ratingsCCNA Routing and Switching Practice Tests: Exam 100-105, Exam 200-105, and Exam 200-125 Rating: 0 out of 5 stars0 ratingsCEH Certified Ethical Hacker Study Guide Rating: 3 out of 5 stars3/5CompTIA Linux+ Study Guide: Exam XK0-004 Rating: 0 out of 5 stars0 ratingsCompTIA Network+ Review Guide: Exam N10-006 Rating: 0 out of 5 stars0 ratingsCompTIA Security+ Study Guide: Exam SY0-501 Rating: 4 out of 5 stars4/5CompTIA Cloud+ Study Guide: Exam CV0-002 Rating: 0 out of 5 stars0 ratingsCompTIA CySA+ Practice Tests: Exam CS0-003 Rating: 1 out of 5 stars1/5CompTIA PenTest+ Practice Tests: Exam PT0-001 Rating: 0 out of 5 stars0 ratingsCompTIA Project+ Study Guide: Exam PK0-004 Rating: 0 out of 5 stars0 ratingsCWTS, CWS, and CWT Complete Study Guide: Exams PW0-071, CWS-100, CWT-100 Rating: 0 out of 5 stars0 ratingsCompTIA CySA+ Practice Tests: Exam CS0-001 Rating: 0 out of 5 stars0 ratings(ISC)2 CISSP Certified Information Systems Security Professional Official Practice Tests Rating: 5 out of 5 stars5/5Windows Server 2022 & PowerShell All-in-One For Dummies Rating: 0 out of 5 stars0 ratingsCompTIA A+ Complete Practice Tests: Core 1 Exam 220-1101 and Core 2 Exam 220-1102 Rating: 0 out of 5 stars0 ratingsCompTIA Network+ Practice Tests: Exam N10-008 Rating: 0 out of 5 stars0 ratingsCASP+ CompTIA Advanced Security Practitioner Practice Tests: Exam CAS-004 Rating: 0 out of 5 stars0 ratingsCompTIA Network+ Practice Tests: Exam N10-007 Rating: 0 out of 5 stars0 ratingsCompTIA Linux+ Powered by Linux Professional Institute Study Guide: Exam LX0-103 and Exam LX0-104 Rating: 5 out of 5 stars5/5Security Administrator Street Smarts: A Real World Guide to CompTIA Security+ Skills Rating: 3 out of 5 stars3/5CEH v11: Certified Ethical Hacker Version 11 Practice Tests Rating: 0 out of 5 stars0 ratingsLPIC-1: Linux Professional Institute Certification Study Guide Rating: 4 out of 5 stars4/5CompTIA Network+ Review Guide: Exam N10-007 Rating: 0 out of 5 stars0 ratingsCompTIA Server+ Study Guide: Exam SK0-004 Rating: 0 out of 5 stars0 ratingsCompTIA CySA+ Study Guide: Exam CS0-001 Rating: 0 out of 5 stars0 ratingsLinux Security Fundamentals Rating: 0 out of 5 stars0 ratingsVCA-DCV VMware Certified Associate on vSphere Study Guide: VCAD-510 Rating: 0 out of 5 stars0 ratings
Certification Guides For You
Mike Meyers' CompTIA A+ Certification Passport, Sixth Edition (Exams 220-901 & 220-902) Rating: 4 out of 5 stars4/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Coding For Dummies Rating: 5 out of 5 stars5/5CompTIA A+ Complete Review Guide: Core 1 Exam 220-1101 and Core 2 Exam 220-1102 Rating: 5 out of 5 stars5/5CompTIA Network+ Review Guide: Exam N10-008 Rating: 0 out of 5 stars0 ratingsCompTIA Security+ Certification Practice Exams, Fourth Edition (Exam SY0-601) Rating: 5 out of 5 stars5/5Mike Meyers CompTIA Security+ Certification Passport, Sixth Edition (Exam SY0-601) Rating: 5 out of 5 stars5/5Mike Meyers' CompTIA A+ Certification Passport, Seventh Edition (Exams 220-1001 & 220-1002) Rating: 2 out of 5 stars2/5CompTIA A+ Certification All-in-One For Dummies Rating: 3 out of 5 stars3/5CompTIA Security+ Study Guide: Exam SY0-601 Rating: 5 out of 5 stars5/5How to Get Started as a Technical Writer Rating: 4 out of 5 stars4/5Comptia A+ 220-901 Q & A Study Guide: Comptia 21 Day 900 Series, #2 Rating: 5 out of 5 stars5/5Microsoft Office 365 for Business Rating: 4 out of 5 stars4/5CompTIA CySA+ Practice Tests: Exam CS0-002 Rating: 0 out of 5 stars0 ratingsCompTIA Data+ Study Guide: Exam DA0-001 Rating: 0 out of 5 stars0 ratingsCompTIA Security+ Certification Study Guide, Fourth Edition (Exam SY0-601) Rating: 5 out of 5 stars5/5AWS Certified Cloud Practitioner All-in-One Exam Guide (Exam CLF-C01) Rating: 5 out of 5 stars5/5CompTIA A+ CertMike: Prepare. Practice. Pass the Test! Get Certified!: Core 1 Exam 220-1101 Rating: 0 out of 5 stars0 ratingsCompTIA A+ Complete Study Guide: Exam Core 1 220-1001 and Exam Core 2 220-1002 Rating: 4 out of 5 stars4/5Mike Meyers' CompTIA Security+ Certification Guide, Third Edition (Exam SY0-601) Rating: 5 out of 5 stars5/5CompTIA CySA+ Cybersecurity Analyst Certification Passport (Exam CS0-002) Rating: 5 out of 5 stars5/5Mike Meyers' CompTIA Network+ Certification Passport, Sixth Edition (Exam N10-007) Rating: 1 out of 5 stars1/5Salesforce Certification: Earn Salesforce certifications and increase online sales real and unique practice tests included Kindle Rating: 0 out of 5 stars0 ratingsCCNA Certification Study Guide, Volume 2: Exam 200-301 Rating: 0 out of 5 stars0 ratingsComptia Network+ In 21 Days N10-006 Study Guide: Comptia 21 Day 900 Series, #3 Rating: 0 out of 5 stars0 ratings
Reviews for CompTIA Linux+ Practice Tests
0 ratings0 reviews
Book preview
CompTIA Linux+ Practice Tests - Steve Suehring
Chapter 1
Hardware and System Configuration
THE FOLLOWING COMPTIA LINUX+ EXAM OBJECTIVES ARE COVERED IN THIS CHAPTER:
1.1 Explain Linux boot process concepts.
The following is a partial list of the used files, terms, and utilities:
Boot loaders such as GRUB and GRUB2
Boot options such as UEFI/EFI, PXE, NFS, and booting from ISO and HTTP/FTP
/etc/default/grub
/etc/grub2.cfg
/boot
mkinitrd
dracut
grub2-install
grub2-mkconfig
initramfs
linux.efi
vmlinuz
vmlinux
1.2 Given a scenario, install, configure, and monitor kernel modules
The following is a partial list of the used files, terms, and utilities:
lsmod
insmod
modprobe
dmesg
rmmod
depmod
/usr/lib/[kernelversion]
/usr/lib/modules
/etc/modprobe.conf
/etc/modprobe.d/
1.3 Given a scenario, configure and verify network connection parameters
The following is a partial list of the used files, terms, and utilities:
ping
netstat
nslookup
dig
host
route
ip
ethtool
ss
iwconfig
nmcli
brctl
nmtui
/etc/sysconfig/network
/etc/sysconfig/network-scripts/
/etc/hosts
/etc/network
/etc/resolv.conf
/etc/netplan
/etc/sysctl.conf
/etc/dhcpd.conf
Bonding aggregation, active/passive, load balancing
1.4 Given a scenario, manage storage in a Linux environment
The following is a partial list of the used files, terms, and utilities:
Basic partitions including raw devices, GPT, and MBR
File system hierarchy including real file systems, virtual filesystems, relative paths, and absolute paths
Device mappers including lvm, mdadm, and Multipath
XFS tools
LVM tools
EXT tools
fdisk
parted
mkfs
iostat
df
du
mount
umount
tune2fs
fsck
/etc/fstab
/etc/cryptab
/dev/
/dev/mapper
/dev/disk/by-id
/etc/mtab
/sys/block
Filesystem types including ext3, ext4, xfs, nfs, smb, cifs, and ntfs
1.5 Compare and contrast cloud and virtualization concepts and technologies
The following is a partial list of the used files, terms, and utilities:
Templates including VM, OVA, OVF, JSON, YAML, and container images
Bootstrapping, including Cloud-init, Anaconda, and Kickstart
Storage such as thin vs. thick provisioning, persistent volumes, blob, and block
Network considerations including bridging, overlay networks, NAT, local, and dual-homed
Types of hypervisors
Tools such as libvirt, virsh, and vmm
1.6 Given a scenario, configure localization options
The following is a partial list of the used files, terms, and utilities:
/etc/timezone
/usr/share/zoneinfo
localectl
timedatectl
date
hwclock
time
Environment variables such as LC_*, LC_ALL, LANG, and TZ
Character sets such as UTF-8, ASCII, and Unicode
Which command is used to load a module and its dependencies automatically?
modprobe
lsmod
insmod
rmmod
Which option given at boot time within the GRUB configuration will boot the system into single-user mode?
single-user
su
single
root
During boot of a system with GRUB2, which key can be pressed to display the GRUB menu?
Shift
E
V
H
Which command can be used to view the kernel ring buffer in order to troubleshoot the boot process?
lsboot
boot-log
krblog
dmesg
Which command can be used to obtain a list of currently loaded kernel modules?
insmod
modlist
ls ––modules
lsmod
Within which partition will the EFI system partition typically be mounted?
/etc/efi
/efi
/sys/efi
/boot/efi
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
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 initramfs 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.
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
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
What is the maximum number of primary partitions available on an MBR partitioning system?
2
4
1
5
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
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
Which option for the grub2-mkconfig command sends output to a file instead of STDOUT?
-stdout
--fileout
-o
-f
Of the following choices, which size would be most appropriate for the /boot partition of a Linux system?
Between 100 MB and 500 MB
Between 1 GB and 10 GB
/boot should not be partitioned separately.
Less than 5 MB
Which of the following commands initializes a physical disk partition for use with LVM?
lvmcreate
pvcreate
fvcreate
lvinit
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
Which command is used to create a logical volume with LVM?
pvcreate
lvmcreate
lvcreate
volcreate
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
Which command should be run after making a change to the /etc/default/grub file?
grub
grub-mkconfig
grub-inst
reboot
Which command is used to search for physical volumes for use with LVM?
lvmcreate
pvcreate
lvmdiskscan
lvmscan
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
Which of the following commands installs GRUB into the master boot record (MBR) of the first SATA drive?
grub-install /dev/hda
grub-install /dev/sda
grub-install /dev/hd0,0
grub -i /dev/hda
When running fsck on an ext3 filesystem, 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
After inserting a new hard drive into the system, what is the correct order to make the drive ready for use within Linux?
Use fdisk to create partitions, and then mount the partitions.
Mount the partitions.
Use fdisk to create partitions and mount -a to mount all the newly created partitions.
Use fdisk to create partitions, then format the partitions using a command such as mkfs, and then mount the partitions.
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
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.
According to the Filesystem Hierarchy Standard (FHS), what is the correct location for site-specific data for a server?
/etc
/var
/tmp
/srv
Which option to the mount command will mount all filesystems that are currently available in /etc/fstab?
-f
-d
-a
-m
Which command and option are used to display the number of times a filesystem has been mounted?
tune2fs -h
cat /etc/fstab
mount -a
less /etc/fsmnt
Which option to xfs_metadump displays a progress indicator?
-g
-p
-f
-v
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
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
According to the FHS, what is the proper mount point for removable media?
/etc
/srv
/tmp
/media
Which file contains information on currently mounted filesystems, including their mount options?
/etc/mtab
/etc/fstab
/tmp/files
/etc/filesystems
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
Which of the following represents the correct format for the /etc/fstab file?
Which of the following commands is used to identify the UUID for partitions?
blkid
ls
find
cat
The xfs_info command is functionally equivalent to which command and option?
xfs_test -n
xfs_list
tunexfs -i
xfs_growfs -n
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
Which command and option are used to set the maximum number of times a filesystem can be mounted between running fsck?
tune2fs -c
dumpe2fs
tune2fs -m
setmount
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
Which of the following commands will mount a USB device at /dev/sdb1 into the /media/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
Which option within gdisk will change the partition name?
n
b
v
c
Which option to the dumpe2fs command can be used to display blocks that are reserved because of being marked as bad?
-v
-f
-b
-m
Which options to fsck can be used to check all filesystems listed in /etc/fstab while excluding the root partition?
-NR
-AM
-X
-C
Which option in /etc/fstab sets the order in which the device is checked at boot time?
options
dump
fsck
checkorder
Which file is used to indicate the local time zone on a Linux server?
/etc/timez
/etc/timezoneconfig
/etc/timezone
/etc/localtz
Within which directory will you find files related to the time zone for various regions?
/etc/timezoneinfo
/etc/zoneinfo
/var/zoneinfo
/usr/share/zoneinfo
Which command within virsh obtains information about a domain?
info
dominfo
domainlist
infodom
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
Which of the following encodings provides a multibyte representation of characters?
ISO-8859
UTF-8
ISO-L
UFTMulti
Which command can be used to view the available time zones on a system?
tzd
/etc/locale
timedatectl
tzsel
Which of the following lines added to .profile in a user’s home directory will set their time zone to Central time?
TZ=/Central ; export TZ
TIMEZONE=’America/Chicago’ ; export TIMEZONE
set TZ=/Central
TZ=’America/Chicago’; export TZ
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
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
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
Which locale-related variable is used for currency-related localization?
LC_MONE
LC_CURRENCY
LC_MONETARY
LC_CURR
Which command is used to query and work with the hardware clock on the system?
hwc
ntpdate
systime
hwclock
Which option to the date command can be used to set the date and time?
date -f
date -t
date --change
date -s
Which function of the hwclock command will set the hardware clock to the current system time?
-w
-s
-a
-m
Which of the following commands sets the hardware clock to UTC based on the current system time?
hwclock --systohc --utc
hwclock --systohc --localtime
hwclock --systohc
hwclock --systoutc
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
Which of the following is not used as a private address for local, non-Internet, use?
172.16.4.2
192.168.40.3
10.74.5.244
143.236.32.231
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
Which option for the host command will query for the authoritative name servers for a given domain?
-t ns
-t all
-ns
-named
Which option for the ping command enables you to choose the interface from which the ICMP packets will be generated?
-i
-I
-t
-a
Which of the following commands queries for the mail servers for the domain example.com?
dig example.com mx
dig example.com
host -t smtp example.com
dig example.com smtp
Which of the following addresses represents the localhost in IPv6, such as you might find in /etc/hosts?
0:1
::1
127:0:1
:127:0:0:1
Which command can be used to listen for netlink messages on a network?
ip monitor
netlink -a
ip netlink
route
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
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
Which of the following commands will enumerate the hosts database?
getent hosts
gethosts
nslookup
host
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
Which of the following commands adds a route to the server for the network 192.168.51.0/24 through its gateway 192.168.51.1?
route add -net 192.168.51.0 netmask 255.255.255.0 gw 192.168.51.1
route add -net 192.168.51/24 gw 192.168.1.51
route -net 192.168.51.0/24 192.168.51.1
route add 192.168.51.1 -n 192.168.51.0//255.255.255.0
Which of the following commands shows network services or sockets that are currently listening along with sockets that are not listening?
netstat -a
netlink -a
sockets -f
opensock -l
Which of the following represents a correct configuration line for /etc/hosts?
192.168.1.4 cwa.braingia.org cwa
cwa.braingia.org cwa 192.168.1.4
cwa.braingia.org 192.168.1.8 alias cwa
alias cwa.braingia.org cwa 192.168.1.4
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
Which of the following commands displays the Start of Authority information for the domain example.com?
dig example.com soa
dig example.com authority
dig example.com -auth
dig -t auth example.com
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
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
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
You need to prevent local clients from going to a certain host, www.example.com, and instead redirect them to localhost. Which of the following is a method to override DNS lookups for the specified host?
Add a firewall entry for the IP address of www.example.com to prevent traffic from passing through it.
Delete www.example.com from the route table using the route command.
Add a null route to prevent access to the IP address for www.example.com.
Add an entry for www.example.com in /etc/hosts to point to 127.0.0.1.
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
Which option should be used to send a DNS query for an SPF record with dig?
-t txt
-t spf
-t mx
-t mailspf
When 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.
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
When using iostat to assess performance, which option displays information on a per-partition basis for block devices?
-a
-c
-d
-p
Which of the following commands can be used to display the current disk utilization?
df
du
diskutil
diskuse
You are working with a legacy CentOS 5 system and need to re-create the initial RAM disk. Which of the following commands is used for this purpose?
mkinitrd
mkramdisk
mkdisk --init
mkfs.init
Which of the following commands is used to display the currently loaded modules on a running system?
ls -mod
lsmod
listmod
mod --list
Which of the following commands creates a list of modules and their dependencies?
lsmod
depmod
modlist
listmod
Which option to sysctl displays all values and their current settings?
-a
-b
-d
-c
Which of the following commands installs a kernel module, including dependencies?
lsmod
modprobe
modinst
instmod
Which command is used to determine the modules on which another module depends?
modinfo
modlist
modprobe
tracemod
Which of the following commands inserts a module into the running kernel but does not resolve dependencies?
lsmod
modinstall
insmod
moduleinst
Which option to modprobe will remove a module and attempt to remove any unused modules on which it depends?
-v
-r
-d
-f
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
When working with a CentOS 6 system, which command is used to create the initial RAM disk?
mkinit
dracut
mkraminit
mkinitfs
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
Which of the following options to modprobe will show the dependencies for a module?
--show-deps
--show-depends
--deps
--list-depends
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
Which of the following commands changes the boot order for the next boot?
efibootmgr -c
efibootmgr -b -B
efibootmgr -o
efibootmgr -n
Which bootloader can be used to boot from ISO with ISO9660 CD-ROMs?
ISOLINUX
EFIBOOT
ISOFS
BOOTISO
When using UEFI, which of the following files can be used as a bootloader?
shim.uefi
shim.efi
shim.fx
efi.shim
Which of the following commands, executed from within the UEFI shell, controls the boot configuration?
bootcfg
bcfg
grub-install
grcfg
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)
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
Which option to grub-install will place the GRUB images into an alternate directory?
--boot-dir
-b
-boot
--boot-directory
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
Part of the EXT tools, which option to the mke2fs command sets the type of filesystem to be created?
-f
-a
-t
-e
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
Which option to dumpe2fs displays the bad blocks for a given partition?
-bb
-C
-b
-f
Which option to xfs_check is used to verify a filesystem that is stored in a file?
-v
-a
-f
-d
You are performing an xfsrestore. The xfsdump was executed with a block size of 4M. 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
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
Which of the following options to xfsdump sets the maximum size for files to be included in the dump?
-p
-s
-z
-b
Which partition type is used to indicate a software RAID array, such as an array built with mdadm?
0xmd
-x-
0xRD
0xFD
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
Which of the following commands displays information about a given physical volume in an LVM setup?
pvdisp
pvlist
pvdisplay
pvl
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
Which of the following commands displays path information for LUNs?
luninfo -a
ls -lun
multipath -l
dm-multi
Which command is used to remove unused filesystem blocks from thinly provisioned storage?
thintrim
thtrim
fstrim
fsclean
When using tune2fs to set an extended option such as stripe_width,