Which command would you use to view information about block devices?

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

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The command you would use to view information about block devices is "lsblk." This command displays a list of all block devices on the system, showing information such as device names, sizes, types, and mount points in a clear and organized tree-like structure. This makes it easy to view the hierarchy of the devices, including partitions and logical volumes.

While other commands can also provide information related to block devices, "lsblk" specializes in presenting this data in a user-friendly manner. For instance, "df" focuses on disk space usage, "cat /proc/partitions" retrieves partition information but lacks the neat formatting and comprehensive nature of "lsblk," and "blkid" primarily retrieves information about block device attributes, such as UUIDs and file system types, rather than a comprehensive overview of all block devices.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy