System Management

An administrator must write /etc/fstab entries that use UUIDs. They want one command that shows each disk and its partitions in a tree, along with each filesystem's type and UUID. Which command BEST meets this need?

Show the answer

Correct answerB. lsblk -f

lsblk -f lists block devices in a tree with filesystem type, label, UUID and mount point. parted -l shows partition tables and filesystem types but not filesystem UUIDs, and df -T lists only mounted filesystems without UUIDs.