Linux+ XK0-006 practice question 1: System management
An administrator needs to see which block devices are attached, with their sizes and mount points, in a tree. Which command does that?
The options
- A. lspci
- B. lsusb
- C. lsmod
- D. lsblk
Answer and why
The correct answer is D: lsblk
A. lspci lists PCI devices and does not describe disks and partitions.
B. lsusb lists USB devices and shows no partitions or mount points.
C. lsmod lists loaded kernel modules.
D. lsblk lists block devices in a tree with size, type and mount point.
What System management tests
System management is storage, boot, packages, processes and networking basics. Distractors are real commands for a neighboring job, so match the tool to the object the stem names: a block device, a package, a process or an interface.
System management is 23% of the XK0-006 exam. The exam has 90 questions in 90 minutes, so this question is a slice of the real mix, not a prediction of your result.
Try these next
Each one is a free question from the same practice test, with the answer and the reason for every option on its own page.
- A new disk partition has been formatted and must be mounted at boot. Which file should the administrator add an entry to?
- A package must be installed on a Debian-based system and its dependencies resolved automatically. Which command does this?
- A service unit file was edited on a systemd host. What must the administrator run so systemd reads the change before restarting the service?
- A file must be readable and writable by its owner, readable by the group and inaccessible to everyone else. Which mode does that?
Keep going
This is question 1 of 15 in the free Linux+ XK0-006 practice test. If you missed it, say why in one sentence before you read on: the reason is what transfers to a differently worded question.