DU(1) — USER COMMANDS
NAME
du − summarize disk usage
SYNOPSIS
du [ −s ] [ −a ] [ name ... ]
DESCRIPTION
Du gives the number of kilobytes contained in all files and, recursively, directories within each specified directory or file name. If name is missing, ‘.’ (the current directory) is used.
A file which has multiple links to it is only counted once.
OPTIONS
−s Only display the grand total.
−a Generate an entry for each file.
Entries are generated only for each directory in the absence of options.
EXAMPLE
Here is an example of using du in a directory. We used the pwd command to identify the directory, then used du to show the usage of all the subdirectories in that directory. The grand total for the directory is the last entry in the display:
% pwd
/usr/henry/misc
% du
5./jokes
33./squash
44./tech.papers/lpr.document
217./tech.papers/new.manager
401./tech.papers
144./memos
80./letters
388./window
93./messages
15./useful.news
1211.
%
SEE ALSO
BUGS
Non-directories given as arguments (not under −a option) are not listed.
If there are too many distinct linked files, du counts the excess files multiply.
Sun Release 1.1 — Last change: 1 November 1983