du - display the number of disk blocks used per directory or file
du [ -s ] [ -a ] [ filename ... ]
SYSTEM V SYNOPSIS
/usr/5bin/du [ -s ] [ -a ] [ -r ] [ filename ... ]
The System V version of this command is available with the System V
software installation option. Refer to for information on how to
install optional software.
du gives the number of kilobytes contained in all files and, recur-
sively, directories within each specified directory or file filename.
If filename is missing, `.' (the current directory) is used.
A file which has multiple links to it is only counted once.
SYSTEM V DESCRIPTION
The System V version of du gives the number of 512-byte blocks rather
than the number of kilobytes.
-s Only display the grand total for each of the specified file-
-a Generate an entry for each file.
Entries are generated only for each directory in the absence of
SYSTEM V OPTIONS
-r The System V version of 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.
Here is an example of using du in a directory. We used the pwd(1) com-
mand to identify the directory, then used du to show the usage of all
the subdirectories in that directory. The grand total for the direc-
tory is the last entry in the display:
df(1V), pwd(1), quot(8)
Filename arguments that are not directory names are ignored, unless you
use -a .
If there are too many distinct linked files, du will count the excess
files more than once.
9 September 1987 DU(1V)