DU(1B) BSD System Compatibility DU(1B)

du - (BSD) summarize disk usage

du [-ahHLsxo] [name ...]

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:

This option causes an entry to be generated for each file. Absence of either causes an entry to be generated for each directory only.
This option causes only the grand total to be given. Overrides the -a option.

The following option has been introduced by POSIX.2:

Do not cross device boundaries when descending a directory hierarchy.

The following options have been introduced by POSIX.1-2001:

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.
Always follow symbolic links and count the sizes of the files they refer to.

The following options are extensions:

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.
Do not add sizes of subdirectories to parent directories.

A file which has two links to it is only counted once.

df(1)

Non-directories given as arguments (not under -a or -s options) are not listed.

Files with holes may produce incorrect results.

1/23/05 Heirloom Toolchest