What command is used to show the path of block devices on the system, file system types, their mount point, and UUIDs?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Prepare for the Red Hat Certified Architect Exam with our comprehensive quiz. Master your skills with multiple choice questions and detailed explanations. Gear up to excel!

The command that is most suitable for showing the path of block devices, file system types, their mount points, and UUIDs is lsblk -fp.

When you use the lsblk command with the -f option, it displays additional information including the filesystem type, mount points, and UUIDs for each block device present in the system. The -p option ensures that the complete path of the block devices is shown, which is helpful for identification and management. This command provides a clear and comprehensive view of the block device configuration in a user-friendly format, making it easier for administrators to manage disks and partitions effectively.

In contrast, while blkid -o list also provides information about block devices and their UUIDs, it does so in a less user-friendly format, focusing primarily on identifiers without organizing the data into a table with mount points and device paths. The df -T command mainly provides disk usage information and file system types for mounted files, but doesn't list all block devices or their paths. fdisk -l offers detailed information about disk partitions, but does not specify mount points or UUIDs directly, and is more focused on partitioning details rather than user-friendly summaries of filesystem

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy