TestOut Linux Pro Practice Test 2025 – Complete Exam Prep Guide

Image Description

Question: 1 / 400

What command is used to display disk usage in Linux?

df

du

The command used to display disk usage in Linux is "du," which stands for disk usage. This command allows users to estimate file space usage by reporting the amount of disk space used by files and directories. When executed, it provides detailed information about the sizes of specific directories or files, making it a valuable tool for managing disk space and understanding how much space is used in different parts of the filesystem.

For instance, using "du -h" displays sizes in a human-readable format, which converts bytes into KB, MB, or GB, aiding in better comprehension of the disk usage. This command is particularly useful for users who need to identify large files or directories that may be consuming excessive amounts of disk space.

While "df" is also a command related to disk usage, it focuses on displaying the overall filesystem disk space usage, including the available space, rather than detailed usage per file or directory. Understanding these distinctions helps users effectively manage their disk resources.

Get further explanation with Examzify DeepDiveBeta

disku

sizes

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy