DU(1M) (Essential Utilities) DU(1M)
NAME
du - summarize disk usage
SYNOPSIS
du [ -salr ] [ names ]
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:
-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
generated for each directory only.
-l causes du to follow symbolic links. (The default action
is not to follow links.) With this option, as the size
of the file, du will take the size of the file that is
pointed to by the symbolic link. (Without -l, it uses
the size of the symbolic link itself.)
-r will cause du to generate messages about directories
that cannot be read, etc., rather than being silent
(the default).
A file with two or more links is only counted once.
BUGS
If the -a option is not used, non-directories given as
arguments are not listed.
If there are links between files in different directories
Page 1 May 1989
DU(1M) (Essential Utilities) DU(1M)
where the directories are on separate branches of the file
system hierarchy, du will count the excess files more than
once.
Files with holes in them will get an incorrect block count.
(See the chapter, "File System Administration," in the
System Administrator's Guide).
Page 2 May 1989