DU(C) UNIX System V
Name
du - summarizes disk usage
Syntax
du [ -afrsu ] [ names ]
Description
du gives the number of blocks contained in all files and
directories recursively within each directory and file
specified by the names argument. The block count includes
the indirect blocks of the file. If names is missing, the
current directory is used.
-s causes only the grand total (for each of the specified
names) to be given. -a causes an entry to be generated for
each file. Absence of either causes an entry to be
generated for each directory only.
The -f option causes du to display the usage of files in the
current file system only. Directories containing mounted
file systems will be ignored. The -u option causes du to
ignore files that have more than one link.
du is normally silent about directories that cannot be read,
files that cannot be opened, etc. The -r option will cause
du to generate messages in such instances.
A file with two or more links is only counted once.
Notes
If the -a option is not used, nondirectories given as
arguments are not listed.
If there are too many distinct linked files, du will count
the excess files more than once.
Files with holes in them will get an incorrect block count.
This utility reports sizes in 512 byte blocks. du
interprets 1 block from a 1024 byte block system as 2 of its
own 512 byte blocks. Thus a 500 byte file is interpreted as
2 blocks rather than 1.
Standards Conformance
du is conformant with:
AT&T SVID Issue 2, Select Code 307-127;
and The X/Open Portability Guide II of January 1987.
(printed 2/15/90) DU(C)