du
du reports the amount of disk space used by the set of specified files and for each subdirectory (of directory arguments).[1]
- GNU Coreutils [EN] @ Fedora Package
- GNU Coreutils [EN] @ Homebrew Formula
Documentation
- du [EN] @ GNU Coreutils Manual
- man 1 'du' [EN]
Syntax
du [PARAMETER ...] [FILE/DIRECTORY ...]
Parameters
- -c, --total
- Print a grand total of all arguments after all arguments have been processed. This can be used to find out the total disk usage of a given set of files or directories.
- -h, --human-readable
- Append a size letter to each size, such as M for mebibytes. Powers of 1024 are used, not 1000; M stands for 1,048,576 bytes. This option is equivalent to --block-size='human-readable'.
- -s, --summarize
- Display only a total for each argument.
- --si
- Append an SI-style abbreviation to each size, such as M for megabytes. Powers of 1000 are used, not 1024; M stands for 1,000,000 bytes. This option is equivalent to --block-size='si'.