2005-05-02 15:01:42 +02:00
|
|
|
.TH DU 1
|
|
|
|
.SH NAME
|
|
|
|
du \- print disk usage
|
|
|
|
.SH SYNOPSIS
|
|
|
|
\fBdu\fR [\fB\-as\fR]\fR [\fB\-l \fIn\fR] \fIdir\fR ...\fR
|
|
|
|
.br
|
|
|
|
.de FL
|
|
|
|
.TP
|
|
|
|
\\fB\\$1\\fR
|
|
|
|
\\$2
|
|
|
|
..
|
|
|
|
.de EX
|
|
|
|
.TP 20
|
|
|
|
\\fB\\$1\\fR
|
|
|
|
# \\$2
|
|
|
|
..
|
|
|
|
.SH OPTIONS
|
|
|
|
.FL "\-a" "Give usage for all files"
|
|
|
|
.FL "\-l" "List up to \fIn\fR levels of subdirectories"
|
|
|
|
.FL "\-d" "Do not cross file system boundaries"
|
|
|
|
.FL "\-s" "Summary only"
|
|
|
|
.SH EXAMPLES
|
|
|
|
.EX "du dir" "List disk space used by files in dir"
|
|
|
|
.EX "du \-s dir1 dir2" "Give summaries only"
|
|
|
|
.EX "du \-d /" "Show only the root device"
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.PP
|
|
|
|
\fIDu\fR examines one or more directories and prints the amount of space
|
|
|
|
occupied by the files in those directories and their subdirectories.
|
2006-01-11 18:18:53 +01:00
|
|
|
.SH BUGS
|
|
|
|
\fIDu\fR calculates disk usage based on file size. It could be there
|
|
|
|
are holes in the file, not occupying any actual disk blocks, causing
|
|
|
|
\fIdu\fR to overestimate disk usage. (\fIDu\fR does recognize and correctly
|
|
|
|
calculate disk usage when hard links are encountered.)
|
2005-05-02 15:01:42 +02:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR df (1).
|