1 .\" $NetBSD: du.1,v 1.21 2006/09/24 07:19:16 wiz Exp $
3 .\" Copyright (c) 1990, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)du.1 8.2 (Berkeley) 4/1/94
32 .Dd September 24, 2006
37 .Nd display disk usage statistics
40 .Op Fl H | Fl L | Fl P
41 .Op Fl a | Fl d Ar depth | Fl s
47 utility displays the file system block usage for each file argument
48 and for each directory in the file hierarchy rooted in each directory
50 If no file is specified, the block usage of the hierarchy rooted in
51 the current directory is displayed.
53 The options are as follows:
56 Symbolic links on the command line are followed.
57 (Symbolic links encountered in the tree traversal are not followed.)
59 All symbolic links are followed.
61 No symbolic links are followed.
63 Display an entry for each file in the file hierarchy.
65 Display the grand total after all the arguments have been processed.
67 Display an entry files and directories
73 flag is specified, the number displayed is the number of gigabyte
74 (1024*1024*1024 bytes) blocks.
78 flag is specified, the numbers will be displayed in "human-readable"
80 Use unit suffixes: B (Byte), K (Kilobyte), M (Megabyte), G (Gigabyte),
81 T (Terabyte) and P (Petabyte).
85 displays the number of blocks as returned by the
87 system call, i.e. 512-byte blocks.
90 flag is specified, the number displayed is the number of kilobyte
92 Partial numbers of blocks are rounded up.
96 flag is specified, the number displayed is the number of megabyte
97 (1024*1024 bytes) blocks.
99 Ignore files and directories with user
105 Generate warning messages about directories that cannot be read.
106 This is the default behaviour.
108 Display only the grand total for the specified files.
110 Filesystem mount points are not traversed.
114 counts the storage used by symbolic links and not the files they
124 options are specified, storage used by any symbolic links which are
125 followed is not counted or displayed.
131 options override each other and the command's actions are determined
132 by the last one specified.
134 Files having multiple hard links are counted (and displayed) a single
139 .Bl -tag -width BLOCKSIZE
141 If the environment variable
149 options are not specified, the block counts will be displayed in units of that