CompTIA Linux+ free question 2 / 10 · Domain 1: System Management
An administrator runs lsblk with the -f option to see file system types and UUIDs, but suspects the output may be stale. According to the lsblk manual page, which command provides the authoritative information about file systems and RAIDs?
- fdisk, which prints the partition table together with the file system on the partitions
- findmnt, which shows the mounted file systems and the type that the kernel reports
- blkid, which the page names as the authoritative source for file system and RAID information
- lsblk itself, which reads the file system signatures from the devices themselves
Show the answer and explanation
Answer: C
Why this is correct
The lsblk page describes -f, --fs as the option that outputs file system information, equivalent to -o NAME,FSTYPE,FSVER,LABEL,UUID,FSAVAIL,FSUSE%,MOUNTPOINTS. It then says the authoritative information about filesystems and raids is provided by the blkid(8) command, so blkid is where to confirm a type, label, or UUID.
Why the other options are wrong
"fdisk, which prints the partition table together with the file system on the partitions" … The page names blkid as authoritative. fdisk works with partition tables.
"findmnt, which shows the mounted file systems and the type that the kernel reports" … The page names blkid as the authoritative command. findmnt is not mentioned as an authority for file systems and RAIDs.
"lsblk itself, which reads the file system signatures from the devices themselves" … The page says that the authoritative information is provided by blkid, so lsblk is not the final authority on file systems and RAIDs.
Key points
lsblk is a convenient tree view of block devices. When the exact signature matters, ask blkid.
Go to the CompTIA Linux+ practice app (10 free questions; purchase unlocks all questions)