BSD 4_4 development
[unix-history] / usr / share / man / cat1 / du.0
DU(1) BSD Reference Manual DU(1)
N\bNA\bAM\bME\bE
d\bdu\bu - display disk usage statistics
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
d\bdu\bu [-\b-a\ba | -\b-s\bs] [-\b-H\bHh\bhx\bx] [_\bf_\bi_\bl_\be _\b._\b._\b.]
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
The d\bdu\bu 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:
-\b-a\ba Display an entry for each file in the file hierarchy.
-\b-s\bs Display only the grand total for the specified files.
-\b-H\bH When encountering a symbolic link on the command line, follow it.
All other symbolic links encountered in the traversal are not
followed.
-\b-h\bh When encountering a symbolic link anywhere in the traversal, fol-
low it.
-\b-x\bx Filesystem mount points are not traversed.
D\bDu\bu references symbolic links as the links themselves unless the -\b-H\bH or -\b-h\bh
flags are specified, in which case behavior is as detailed above.
Files having multiple hard links are counted (and displayed) a single
time per d\bdu\bu execution.
E\bEN\bNV\bVI\bIR\bRO\bON\bNM\bME\bEN\bNT\bTA\bAL\bL V\bVA\bAR\bRI\bIA\bAB\bBL\bLE\bES\bS
BLOCKSIZE If the environmental variable BLOCKSIZE is set, the block
counts will be displayed in units of that size block.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
df(1), fts(3), symlink(7), quot(8)
H\bHI\bIS\bST\bTO\bOR\bRY\bY
A d\bdu\bu command appeared in Version 6 AT&T UNIX.
4.4BSD June 6, 1993 1