Which command is commonly used to check the current disk usage in a directory?

Prepare for the LPI Linux Essentials 010-160 Test. Study with flashcards and multiple choice questions, each question offers hints and explanations. Get ready to ace your exam!

The command commonly used to check the current disk usage in a directory is "du -sh." This command stands for "disk usage" and is specifically designed to summarize disk space usage of files and directories. The "-s" option stands for "summarize," which means it provides a total usage for the specified directory rather than listing individual files, while the "-h" option means "human-readable," making the output easier to understand by displaying sizes in a format that is easy to read, such as KB, MB, or GB.

This makes "du -sh" a practical choice when you want to quickly assess how much disk space a directory is consuming, without getting bogged down in the details of its contents.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy