Which command shows filesystem capacity in a human-readable form?

Prepare for the Google Data Center Technician Exam. Use our interactive quiz featuring flashcards and multiple choice questions with hints and explanations. Get exam-ready today!

Multiple Choice

Which command shows filesystem capacity in a human-readable form?

Explanation:
Looking at filesystem capacity in a human-friendly form means using a command that summarizes each mounted filesystem with its total size, used space, and available space, and presents those numbers in readable units like K, M, or G. The df command does exactly that for every mounted filesystem. When you add the -h option, df formats the sizes in human-readable units, so you can quickly gauge free space and usage at a glance. Typical output shows the filesystem, total size, used, available, use percentage, and the mount point, making it ideal for quickly assessing disk capacity. The other commands don’t fit as well for this purpose. du -sh * reports the size of individual directories in the current path, not the overall capacity of mounted filesystems. lsblk lists block devices and their sizes, which is about device capacity rather than current usage of mounted filesystems. mount shows what is mounted and where, along with options, but it doesn’t display space usage or capacity.

Looking at filesystem capacity in a human-friendly form means using a command that summarizes each mounted filesystem with its total size, used space, and available space, and presents those numbers in readable units like K, M, or G. The df command does exactly that for every mounted filesystem. When you add the -h option, df formats the sizes in human-readable units, so you can quickly gauge free space and usage at a glance. Typical output shows the filesystem, total size, used, available, use percentage, and the mount point, making it ideal for quickly assessing disk capacity.

The other commands don’t fit as well for this purpose. du -sh * reports the size of individual directories in the current path, not the overall capacity of mounted filesystems. lsblk lists block devices and their sizes, which is about device capacity rather than current usage of mounted filesystems. mount shows what is mounted and where, along with options, but it doesn’t display space usage or capacity.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy