DU(1M-SysV) RISC/os Reference Manual DU(1M-SysV)
NAME
du - summarize disk usage
SYNOPSIS
du [ -L ] [ -s ] [ -a ] [ -r ] [ name... ]
DESCRIPTION
du reports the number of blocks contained in all files and
(recursively) directories 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.
The optional arguments are as follows:
-s causes only the grand total (for each of the specified
names) to be given.
-a causes an output line to be generated for each file.
If neither -s or -a is specified, an output line is gen-
erated for each directory only. If both are specified, the
last one specified on the command line is used.
-r will cause du to generate messages about directories
that cannot be read, files that cannot be opened, etc.,
rather than being silent (the default).
-L causes du to follow symbolic links. Note that this can
result in looping if the symbolic link points to a parent of
the directory containing the link.
A file with two or more links is only counted once.
BUGS
If the -a option is not used, non-directories given as argu-
ments are not listed.
Files with holes in them will get an incorrect block count.
(See Chapter 5, File System Administration, in the System
Administrator's Guide.)
Printed 1/15/91 Page 1