4.3BSD-Reno/src/usr.bin/du/du.1

Compare this file to the similar file:
Show the results in this format:

.\" Copyright (c) 1990 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms are permitted provided
.\" that: (1) source distributions retain this entire copyright notice and
.\" comment, and (2) distributions including binaries display the following
.\" acknowledgement:  ``This product includes software developed by the
.\" University of California, Berkeley and its contributors'' in the
.\" documentation or other materials provided with the distribution and in
.\" all advertising materials mentioning features or use of this software.
.\" Neither the name of the University nor the names of its contributors may
.\" be used to endorse or promote products derived from this software without
.\" specific prior written permission.
.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
.\"     @(#)du.1	6.7 (Berkeley) 7/24/90
.\"
.Dd July 24, 1990
.Dt DU 1
.Os BSD 4.4
.Sh NAME
.Nm du
.Nd Display disk usage statistics
.Sh SYNOPSIS
.Nm du
.Op Fl aksx
.Op Ar pathname ...
.Sh DESCRIPTION
.Nm Du
utility displays the block usage of files in the current directory
or for the entire tree of a given pathname.
.Pp
The options are as follows:
.Tw Ds
.Tp Fl a
Generate an entry for each file.
.Tp Fl k
By default,
.Nm du
displays the number of blocks as returned by the
.Xr stat  2
system call, i.e. 512-byte blocks.
If the
.Fl k
flag is specified, the number displayed is the number of 1024-byte
blocks with partial blocks rounded up.
.Tp Fl s
Generate only the grand total.
If neither
.Fl a
or
.Fl s
are specified, an entry is generated for each directory only.
.Tp Fl x
Don't traverse any mount points.
.Tp
.Pp
Files having multiple hard links are counted
(and displayed) a single time per
.Nm du
execution.
.Sh SEE ALSO
.Xr df 1 ,
.Xr quot 8
.Sh HISTORY
A
.Nm du
command appeared in Version 6 AT&T Unix.