du(1M)
NAME
du − summarize disk usage
SYNOPSIS
du [−arskod] [name ...]
DESCRIPTION
The du command reports the number of 512 byte blocks contained in all files and (recursively) directories within each directory and file specified. The block count includes the indirect blocks of the file. If no names are given, the current directory is used.
If the −a option is not used, non-directories given as arguments are not listed. If neither −s or −a is specified, an output line is generated for each directory only.
A file with two or more links is counted only once.
OPTIONS
−a An output line is generated for each file.
−r Generates messages about directories that cannot be be read, files that cannot be opened, etc., rather than being silent (the default).
−s Only the grand total (for each of the specified names) is given.
−k Print allocation in kilobytes.
−o Don’t add child directories’ usage to a parent’s total. Without this option, the usage listed for a particular directory is the space taken by the files in that directory, as well as the files in all directories beneath it. This option does nothing if −s is used.
−d Don’t cross filesystem boundaries. "du -d /" would report usage only on the root partition, for example.
SEE ALSO
File System Administration
NOTES
If there are links between files in different directories 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.
SunOS 5.4 — Last change: 23 May 1991