Which command can be used to display all UUIDs of block devices that contain filesystems?
Trap 1: both A and B
Incorrect. This option is not a command; it is a self-referential phrase. The correct answer is to select both A and C.
Trap 2: fdisk -l
Incorrect. `fdisk -l` lists partition tables but does not display UUIDs.
- A
lsblk -f
Correct. The `-f` option of `lsblk` shows filesystem information, including UUIDs.
- B
both A and B
Why wrong: Incorrect. This option is not a command; it is a self-referential phrase. The correct answer is to select both A and C.
- C
blkid
Correct. `blkid` directly outputs UUIDs and filesystem types for block devices.
- D
fdisk -l
Why wrong: Incorrect. `fdisk -l` lists partition tables but does not display UUIDs.