du

Displays information on disk usage

du [options] [path-list]

The du (disk usage) utility reports how much disk space is occupied by a directory (along with all its subdirectories and files) or a file. By default du displays the number of 1,024-byte blocks that are occupied by the directory or file.

Arguments

Without an argument du displays information about the working directory and its subdirectories and files therein. The path-list specifies the directories and files you want information on.

Options

Without any options du displays the total storage used for each argument in path-list. For directories du displays this total only after recursively listing the totals for each subdirectory.

--all

-a Displays the space used by all ordinary ...

Get A Practical Guide to Red Hat® Linux® 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.