DU(1) BSD Reference Manual DU(1)
NAME
du - Display disk usage statistics
SYNOPSIS
du [-a | -s] [-x] [file ...]
DESCRIPTION
The du utility displays the file system block usage for each file argu-
ment and for each directory in the file hierarchy rooted in each directo-
ry argument. If no file is specified, the block usage of the hierarchy
rooted in the current directory is displayed. The number of blocks are
in the same units as that returned by the stat(2) system call, i.e.
512-byte blocks. Partial numbers of blocks are rounded up.
The options are as follows:
-a Display an entry for each file in the file hierarchy.
-s Display only the grand total for the specified files.
-x Filesystem mount points are not traversed.
If file is a symbolic link referencing an existing file, the file refer-
enced by the link is reported on instead of the link itself.
Files having multiple hard links are counted (and displayed) a single
time per du execution.
ENVIRONMENTAL VARIABLES
BLOCKSIZE If the environmental variable BLOCKSIZE is set, the block
counts will be displayed in units of that size block.
SEE ALSO
df(1), quot(8)
HISTORY
A du command appeared in Version 6 AT&T UNIX.
BSDI BSD/386 March 27, 1993 1