du - (BSD) summarize disk usage
Du gives the number of blocks (1024 bytes) contained in all files and
(recursively) directories within each specified directory or file name.
If name is missing, `.' is used.
The following options are supported:
- -a
- This option causes an entry to be generated for each file. Absence of
either causes an entry to be generated for each directory only.
- -s
- This option causes only the grand total to be given. Overrides the -a
option.
The following option has been introduced by POSIX.2:
- -x
- Do not cross device boundaries when descending a directory hierarchy.
The following options have been introduced by POSIX.1-2001:
- -H
- Follow symbolic links given on the command line and count the size of the
files they refer to, but do not follow symbolic links found during
directory traversal and count the sizes of these symbolic links
themselves.
- -L
- Always follow symbolic links and count the sizes of the files they refer
to.
The following options are extensions:
- -h
- Print statistics in human-readable powers of 1024, i.e. `K' for kilobyte,
`M' for megabyte, `G' for gigabyte, `T' for terabyte, `P' for petabyte,
and `E' for exabyte.
- -o
- Do not add sizes of subdirectories to parent directories.
A file which has two links to it is only counted once.
Non-directories given as arguments (not under -a or -s options)
are not listed.
Files with holes may produce incorrect results.