What command can check disk space usage in Linux?

Prepare for the LPI 101-500 Certification Exam. Utilize flashcards, navigate multiple choice questions, and benefit from hints and explanations. Begin your Linux certification journey today!

The command that checks disk space usage in Linux is "df." This command stands for "disk free" and provides a summary of the amount of disk space used and available on file systems. It displays information about total disk space, used space, available space, and the percentage of space used for each mounted file system, which is helpful for system administrators to monitor disk health and usage trends. It typically outputs data in a human-readable format, making it easier to interpret.

While "du" is also related to disk usage, it serves a different purpose. The "du" command is used to estimate file space usage for a directory and its contents, providing a breakdown of space used by individual files and subdirectories recursively. This information is usually more detailed and focused on specific directories rather than the overall usage of mounted file systems.

The "ls" command is used to list directory contents and does not provide any information about disk space usage. Similarly, "space" is not a standard Linux command for checking disk usage. Thus, "df" stands out as the appropriate choice for monitoring general disk space consumption on the entire system.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy