What command displays disk usage by partition in Linux?

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 that displays disk usage by partition in Linux is indeed the command that starts with 'df'. This command, short for "disk free," is used to report the amount of disk space used and available on filesystems. When executed, it provides a summary of the total space, used space, available space, and the mount points for each partition.

The 'df' command is particularly useful for system administrators and users to monitor their disk usage across different partitions in real-time. It can be invoked with various options to customize the output, such as showing sizes in human-readable formats, which makes it easier to understand disk usage at a glance.

In contrast, other commands listed serve different purposes. For example, the 'du' command is designed to check the disk usage of a specific directory and its contents, rather than by partition. On the other hand, 'iostat' reports on CPU and input/output statistics for devices and partitions, and 'blkid' is used to display block device attributes like UUIDs and filesystem types. Each of these commands has its own functionality that does not pertain to the overall disk usage of partitions.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy