XK0-004 · Question #235
An administrator receives an alarm because the disk of one of the sewers is running out of space. Which of the following commands can be used to see the space that each partition is using?
The correct answer is A. df -h. The df command reports disk space usage per mounted filesystem, making it the correct tool for checking how much space each partition is consuming.
Question
An administrator receives an alarm because the disk of one of the sewers is running out of space. Which of the following commands can be used to see the space that each partition is using?
Options
- Adf -h
- Bdu -scg /
- Cfdisk -l
- Dfsck /
How the community answered
(20 responses)- A90% (18)
- C5% (1)
- D5% (1)
Why each option
The df command reports disk space usage per mounted filesystem, making it the correct tool for checking how much space each partition is consuming.
The df -h command displays the total size, used space, available space, and usage percentage for every mounted filesystem in a human-readable format, directly answering the question of how much space each partition is using.
du -scg / estimates the cumulative disk usage of files and directories starting at the root, not the free or used space of individual partitions.
fdisk -l lists partition table entries and their sizes on block devices but does not show how much space is currently used or free on a mounted filesystem.
fsck / is a filesystem consistency checker and repair tool that does not report disk space usage.
Concept tested: Linux disk space reporting with df
Source: https://man7.org/linux/man-pages/man1/df.1.html
Topics
Community Discussion
No community discussion yet for this question.