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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access