CompTIA Linux+ XK0-006 Exam 2026 – 190 Practice Questions with
Answers & Detailed Rationales, System Management, Services &
User Administration, Linux Security, Scripting & Automation,
Troubleshooting
Domain 1: System Management (Questions 1–44)
Question 1
A Linux administrator needs to identify which kernel module provides support for a specific
network interface card. Which command should the administrator use?
A. lsmod | grep <module_name>
B. modinfo <module_name>
C. lspci -k
D. dmesg | grep <module_name>
Correct Answer: C
Explanation: lspci -k displays PCI devices along with the kernel driver and modules in use for
each, directly linking hardware to module.
Question 2
An administrator needs to create a new logical volume named data within an existing
volume group vg_prod with a size of 50GB. Which command accomplishes this?
A. lvcreate -L 50G -n data vg_prod
B. vgcreate -L 50G -n data vg_prod
C. pvcreate -L 50G -n data vg_prod
,D. lvcreate -l 50G -n vg_prod data
Correct Answer: A
Explanation: lvcreate creates logical volumes; -L specifies size in gigabytes, -n names the LV,
and the VG follows.
Question 3
A system fails to boot and drops to an emergency shell. The administrator suspects a
corrupted filesystem on /dev/sda2. What is the correct sequence to attempt repair?
A. Mount /dev/sda2, run fsck, then reboot
B. Run fsck /dev/sda2 while unmounted, then reboot
C. Run mkfs.ext4 /dev/sda2 to recreate the filesystem
D. Boot into single-user mode and run tune2fs /dev/sda2
Correct Answer: B
Explanation: fsck must run on unmounted filesystems to safely repair corruption without
risking data loss or further damage.
Question 4
Which systemd target corresponds to the traditional runlevel 3 (multi-user, non-graphical)?
A. graphical.target
B. rescue.target
C. multi-user.target
D. emergency.target
,Correct Answer: C
Explanation: multi-user.target provides a full multi-user command-line environment,
equivalent to legacy runlevel 3.
Question 5
A server has two physical network interfaces, eth0 and eth1. The administrator wants to
bond them for redundancy. Which bonding mode provides fault tolerance without load
balancing?
A. balance-rr (mode 0)
B. active-backup (mode 1)
C. balance-xor (mode 2)
D. 802.3ad (mode 4)
Correct Answer: B
Explanation: active-backup (mode 1) uses one active slave and fails over to another only if
the active one fails, providing redundancy.
Question 6
An administrator needs to compress a directory /var/log/archive into a gzip-compressed
tarball. Which command is correct?
A. tar -czf archive.tar.gz /var/log/archive
B. tar -xzf archive.tar.gz /var/log/archive
C. gzip -r /var/log/archive > archive.tar.gz
D. zip -r archive.tar.gz /var/log/archive
, Correct Answer: A
Explanation: tar -czf creates (c) a gzip-compressed (z) archive file (f) from the specified
directory.
Question 7
A Linux system is configured with UEFI firmware. Which partition type is required for the
bootloader?
A. BIOS Boot Partition
B. EFI System Partition (ESP)
C. Linux LVM partition
D. Root filesystem partition
Correct Answer: B
Explanation: UEFI systems require an EFI System Partition formatted with FAT32 to store
bootloader files and EFI applications.
Question 8
Which command displays the current runlevel and previous runlevel on a systemd-based
distribution?
A. runlevel
B. systemctl get-default
C. who -r
D. init --status
Correct Answer: A
Answers & Detailed Rationales, System Management, Services &
User Administration, Linux Security, Scripting & Automation,
Troubleshooting
Domain 1: System Management (Questions 1–44)
Question 1
A Linux administrator needs to identify which kernel module provides support for a specific
network interface card. Which command should the administrator use?
A. lsmod | grep <module_name>
B. modinfo <module_name>
C. lspci -k
D. dmesg | grep <module_name>
Correct Answer: C
Explanation: lspci -k displays PCI devices along with the kernel driver and modules in use for
each, directly linking hardware to module.
Question 2
An administrator needs to create a new logical volume named data within an existing
volume group vg_prod with a size of 50GB. Which command accomplishes this?
A. lvcreate -L 50G -n data vg_prod
B. vgcreate -L 50G -n data vg_prod
C. pvcreate -L 50G -n data vg_prod
,D. lvcreate -l 50G -n vg_prod data
Correct Answer: A
Explanation: lvcreate creates logical volumes; -L specifies size in gigabytes, -n names the LV,
and the VG follows.
Question 3
A system fails to boot and drops to an emergency shell. The administrator suspects a
corrupted filesystem on /dev/sda2. What is the correct sequence to attempt repair?
A. Mount /dev/sda2, run fsck, then reboot
B. Run fsck /dev/sda2 while unmounted, then reboot
C. Run mkfs.ext4 /dev/sda2 to recreate the filesystem
D. Boot into single-user mode and run tune2fs /dev/sda2
Correct Answer: B
Explanation: fsck must run on unmounted filesystems to safely repair corruption without
risking data loss or further damage.
Question 4
Which systemd target corresponds to the traditional runlevel 3 (multi-user, non-graphical)?
A. graphical.target
B. rescue.target
C. multi-user.target
D. emergency.target
,Correct Answer: C
Explanation: multi-user.target provides a full multi-user command-line environment,
equivalent to legacy runlevel 3.
Question 5
A server has two physical network interfaces, eth0 and eth1. The administrator wants to
bond them for redundancy. Which bonding mode provides fault tolerance without load
balancing?
A. balance-rr (mode 0)
B. active-backup (mode 1)
C. balance-xor (mode 2)
D. 802.3ad (mode 4)
Correct Answer: B
Explanation: active-backup (mode 1) uses one active slave and fails over to another only if
the active one fails, providing redundancy.
Question 6
An administrator needs to compress a directory /var/log/archive into a gzip-compressed
tarball. Which command is correct?
A. tar -czf archive.tar.gz /var/log/archive
B. tar -xzf archive.tar.gz /var/log/archive
C. gzip -r /var/log/archive > archive.tar.gz
D. zip -r archive.tar.gz /var/log/archive
, Correct Answer: A
Explanation: tar -czf creates (c) a gzip-compressed (z) archive file (f) from the specified
directory.
Question 7
A Linux system is configured with UEFI firmware. Which partition type is required for the
bootloader?
A. BIOS Boot Partition
B. EFI System Partition (ESP)
C. Linux LVM partition
D. Root filesystem partition
Correct Answer: B
Explanation: UEFI systems require an EFI System Partition formatted with FAT32 to store
bootloader files and EFI applications.
Question 8
Which command displays the current runlevel and previous runlevel on a systemd-based
distribution?
A. runlevel
B. systemctl get-default
C. who -r
D. init --status
Correct Answer: A