du(1) DG/UX R4.11 du(1)
NAME
du - summarize disk usage
SYNOPSIS
du [ -amrs ] [ name ... ]
where:
name The name of a directory or regular file; default = .
DESCRIPTION
Du gives the number of blocks contained in all files and
(recursively) directories within each directory and file specified by
the name argument. The block count includes the indirect blocks of
the file.
A file with two or more links is counted only once.
Options are:
-a Generate an entry for each file.
-m Traverse only those subdirectories that are within the same
file system (i.e., don't cross file system mount points).
Normally, du traverses all subdirectories within each
directory when calculating disk usage.
-r Generate a message for each directory that cannot be read,
each file that cannot be opened, etc. By default du is silent
in such instances.
-s Give only the grand total for each of the specified
directories. Absence of either -a or -s generates an entry
for each directory only.
EXAMPLES
du | nawk '$1 > 99 {print}'
Displays the directories and sub-directories which have a larger
block count than 99. The output of du is piped to nawk, and nawk
prints lines whose first field is a number greater than 99.
SEE ALSO
df(1M).
NOTES
If the -a option is not used, non-directories given as arguments are
not listed.
If there are too many distinct linked files, du will abort.
Files with holes in them will get an incorrect block count.
Licensed material--property of copyright holder(s)