Which command is used to show the UUID of present block devices?

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 used to display the UUID of present block devices is blkid. This command queries the available block devices on the system and provides information such as the UUID, TYPE, and LABEL for each device.

When blkid is executed, it scans the filesystem on the block devices and returns formatted output that includes crucial identifiers like UUID (Universally Unique Identifier) which uniquely identifies a filesystem. This is particularly useful for system administrators when configuring filesystems or troubleshooting storage issues.

Options like fdisk are primarily used for partitioning disks, blkswap is related to managing swap space, and partprobe is intended to inform the operating system of partition table changes. These commands do not provide detailed information about UUIDs or the filesystem information directly, which is why they do not serve the purpose of showing UUIDs for block devices effectively.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy