BSD 4_4 development
[unix-history] / usr / share / man / cat1 / du.0
CommitLineData
98473598
C
1DU(1) BSD Reference Manual DU(1)
2
3N\bNA\bAM\bME\bE
4 d\bdu\bu - display disk usage statistics
5
6S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
7 d\bdu\bu [-\b-a\ba | -\b-s\bs] [-\b-H\bHh\bhx\bx] [_\bf_\bi_\bl_\be _\b._\b._\b.]
8
9D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
10 The d\bdu\bu utility displays the file system block usage for each file argu-
11 ment and for each directory in the file hierarchy rooted in each directo-
12 ry argument. If no file is specified, the block usage of the hierarchy
13 rooted in the current directory is displayed. The number of blocks are
14 in the same units as that returned by the stat(2) system call, i.e.
15 512-byte blocks. Partial numbers of blocks are rounded up.
16
17 The options are as follows:
18
19 -\b-a\ba Display an entry for each file in the file hierarchy.
20
21 -\b-s\bs Display only the grand total for the specified files.
22
23 -\b-H\bH When encountering a symbolic link on the command line, follow it.
24 All other symbolic links encountered in the traversal are not
25 followed.
26
27 -\b-h\bh When encountering a symbolic link anywhere in the traversal, fol-
28 low it.
29
30 -\b-x\bx Filesystem mount points are not traversed.
31
32 D\bDu\bu references symbolic links as the links themselves unless the -\b-H\bH or -\b-h\bh
33 flags are specified, in which case behavior is as detailed above.
34
35 Files having multiple hard links are counted (and displayed) a single
36 time per d\bdu\bu execution.
37
38E\bEN\bNV\bVI\bIR\bRO\bON\bNM\bME\bEN\bNT\bTA\bAL\bL V\bVA\bAR\bRI\bIA\bAB\bBL\bLE\bES\bS
39 BLOCKSIZE If the environmental variable BLOCKSIZE is set, the block
40 counts will be displayed in units of that size block.
41
42S\bSE\bEE\bE A\bAL\bLS\bSO\bO
43 df(1), fts(3), symlink(7), quot(8)
44
45H\bHI\bIS\bST\bTO\bOR\bRY\bY
46 A d\bdu\bu command appeared in Version 6 AT&T UNIX.
47
484.4BSD June 6, 1993 1