1 .\" $NetBSD: du.1,v 1.23 2012/05/14 21:14:14 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
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 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).
83 Output inode usage instead of blocks.
84 All "human-readable" options are ignored.
88 displays the number of blocks as returned by the
90 system call, i.e. 512-byte blocks.
93 flag is specified, the number displayed is the number of kilobyte
95 Partial numbers of blocks are rounded up.
99 flag is specified, the number displayed is the number of megabyte
100 (1024*1024 bytes) blocks.
102 Ignore files and directories with user
108 Generate warning messages about directories that cannot be read.
109 This is the default behaviour.
111 Display only the grand total for the specified files.
113 Filesystem mount points are not traversed.
117 counts the storage used by symbolic links and not the files they
127 options are specified, storage used by any symbolic links which are
128 followed is not counted or displayed.
134 options override each other and the command's actions are determined
135 by the last one specified.
137 Files having multiple hard links are counted (and displayed) a single
142 .Bl -tag -width BLOCKSIZE
144 If the environment variable
152 options are not specified, the block counts will be displayed in units of that