|
|
1.1 root 1: .\" Copyright (c) 1990 The Regents of the University of California.
2: .\" All rights reserved.
3: .\"
4: .\" Redistribution and use in source and binary forms are permitted provided
5: .\" that: (1) source distributions retain this entire copyright notice and
6: .\" comment, and (2) distributions including binaries display the following
7: .\" acknowledgement: ``This product includes software developed by the
8: .\" University of California, Berkeley and its contributors'' in the
9: .\" documentation or other materials provided with the distribution and in
10: .\" all advertising materials mentioning features or use of this software.
11: .\" Neither the name of the University nor the names of its contributors may
12: .\" be used to endorse or promote products derived from this software without
13: .\" specific prior written permission.
14: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
15: .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
16: .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17: .\"
18: .\" @(#)du.1 6.7 (Berkeley) 7/24/90
19: .\"
20: .Dd July 24, 1990
21: .Dt DU 1
22: .Os BSD 4.4
23: .Sh NAME
24: .Nm du
25: .Nd Display disk usage statistics
26: .Sh SYNOPSIS
27: .Nm du
28: .Op Fl aksx
29: .Op Ar pathname ...
30: .Sh DESCRIPTION
31: .Nm Du
32: utility displays the block usage of files in the current directory
33: or for the entire tree of a given pathname.
34: .Pp
35: The options are as follows:
36: .Tw Ds
37: .Tp Fl a
38: Generate an entry for each file.
39: .Tp Fl k
40: By default,
41: .Nm du
42: displays the number of blocks as returned by the
43: .Xr stat 2
44: system call, i.e. 512-byte blocks.
45: If the
46: .Fl k
47: flag is specified, the number displayed is the number of 1024-byte
48: blocks with partial blocks rounded up.
49: .Tp Fl s
50: Generate only the grand total.
51: If neither
52: .Fl a
53: or
54: .Fl s
55: are specified, an entry is generated for each directory only.
56: .Tp Fl x
57: Don't traverse any mount points.
58: .Tp
59: .Pp
60: Files having multiple hard links are counted
61: (and displayed) a single time per
62: .Nm du
63: execution.
64: .Sh SEE ALSO
65: .Xr df 1 ,
66: .Xr quot 8
67: .Sh HISTORY
68: A
69: .Nm du
70: command appeared in Version 6 AT&T Unix.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.