TestOut Linux Pro Practice Test 2026 - Free Linux Pro Practice Questions and Study Guide

Get more with Examzify Plus

Remove ads, unlock favorites, save progress, and access premium tools across devices.

FavoritesSave progressAd-free
From $9.99Learn more

1 / 400

Which command would you use to see disk usage for files and directories?

df

du

The command used to see disk usage for files and directories is "du," which stands for "disk usage." This utility provides a report on the space used by files and directories in a specified location or the current directory if none is specified. When executed, it calculates how much disk space is being consumed by its arguments and can be used with various flags to display sizes in a more human-readable format, summarize usage, or show usage for only specific files or directories.

The other commands do serve different purposes: "df" is primarily used to show the amount of disk space available on filesystems rather than specific files or directories. "ls" lists files and directories in a directory and shows their permissions, sizes, and other attributes, but does not summarize disk usage. "pwd" is used to display the current working directory in the file system and does not provide any information about disk usage. Therefore, "du" is the most appropriate choice for assessing disk usage effectively.

Get further explanation with Examzify DeepDiveBeta

ls

pwd

Next Question
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy