105 lines
2.0 KiB
Groff
105 lines
2.0 KiB
Groff
.\" @(#)du.1 1.1 92/07/30 SMI; from UCB 4.3 BSD and S5
|
|
.TH DU 1V "10 April 1986"
|
|
.SH NAME
|
|
du \- summarize disk usage
|
|
.SH SYNOPSIS
|
|
.B du
|
|
[
|
|
.B \-s
|
|
]
|
|
[
|
|
.B \-a
|
|
]
|
|
[
|
|
.I name
|
|
\fB.\|.\|.\fP
|
|
]
|
|
.SH SYSTEM V SYNOPSIS
|
|
.B du
|
|
[
|
|
.B \-s
|
|
]
|
|
[
|
|
.B \-a
|
|
]
|
|
[
|
|
.B \-r
|
|
]
|
|
[
|
|
.I name
|
|
\fB.\|.\|.\fP
|
|
]
|
|
.SH DESCRIPTION
|
|
.IX "du command" "" "\fLdu\fP \(em display disk usage"
|
|
.IX display "disk usage"
|
|
.I du
|
|
gives the number of kilobytes contained in all files and, recursively,
|
|
directories within each specified directory or file
|
|
.IR name .
|
|
If
|
|
.I name
|
|
is missing, \fB.\fR (the current directory) is used.
|
|
.LP
|
|
A file which has multiple links to it is only counted once.
|
|
.SH SYSTEM V DESCRIPTION
|
|
The System V version of
|
|
.I du
|
|
gives the number of 512-byte blocks rather than the number of kilobytes.
|
|
.SH OPTIONS
|
|
.TP
|
|
.B \-s
|
|
Only display the grand total for each of the specified
|
|
.IR name s.
|
|
.TP
|
|
.B \-a
|
|
Generate an entry for each file.
|
|
.LP
|
|
Entries are generated only for each directory in the absence of options.
|
|
.SH SYSTEM V OPTIONS
|
|
.TP
|
|
.B \-r
|
|
The System V version of
|
|
.I du
|
|
is normally silent about directories that cannot be read,
|
|
files that cannot be opened, etc.
|
|
The
|
|
.B \-r
|
|
option will cause
|
|
.I du
|
|
to generate messages in such instances.
|
|
.SH EXAMPLE
|
|
.LP
|
|
Here is an example of using \fIdu\fP in a directory. We used the
|
|
\fIpwd\fP command to identify the directory, then used \fIdu\fP to show
|
|
the usage of all the subdirectories in that directory. The grand total
|
|
for the directory is the last entry in the display:
|
|
.RS
|
|
.nf
|
|
% \fBpwd\fP
|
|
/usr/henry/misc
|
|
% \fBdu\fP
|
|
5 \fB.\fP/jokes
|
|
33 \fB.\fP/squash
|
|
44 \fB.\fP/tech.papers/lpr.document
|
|
217 \fB.\fP/tech.papers/new.manager
|
|
401 \fB.\fP/tech.papers
|
|
144 \fB.\fP/memos
|
|
80 \fB.\fP/letters
|
|
388 \fB.\fP/window
|
|
93 \fB.\fP/messages
|
|
15 \fB.\fP/useful.news
|
|
1211 \fB.\fP
|
|
%
|
|
.fi
|
|
.RE
|
|
.SH "SEE ALSO"
|
|
df(1), quot(8)
|
|
.SH BUGS
|
|
Filename arguments that are not directory names are ignored, unless you
|
|
use
|
|
.B \-a .
|
|
.br
|
|
If there are too many distinct linked files,
|
|
.I du
|
|
will count the excess files more than once.
|