Correct option is C
The
du (disk usage) command in Linux is used to estimate and display the
disk space usage of files and directories. It provides detailed reports about the storage utilized by individual directories and files, making it a valuable tool for analyzing and managing disk space usage. By default, it displays the size of directories and subdirectories in a recursive manner.
Important Key Points:
1.
Usage Analysis: The du command helps track down files and directories consuming excessive disk space.
2.
Customizable Output: Users can modify the output using options like -h for human-readable sizes and --max-depth for limiting directory levels in the output.
3.
Filesystem Insight: It assists system administrators in managing and optimizing disk space by identifying large files and directories.
Knowledge Booster:
·
ls: Lists files and directories but does not display their disk usage.
·
df: Shows the available and used disk space on mounted filesystems, not individual files or directories.
·
top: Displays running processes and system resource usage (CPU, memory), unrelated to disk space usage.
·
mkdir: Creates directories and does not interact with disk usage or display storage information.