1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35.
2 .TH DU "1" "March 2007" "GNU coreutils 6.9" "User Commands"
4 du \- estimate file space usage
7 [\fIOPTION\fR]... [\fIFILE\fR]...
10 [\fIOPTION\fR]... \fI--files0-from=F\fR
12 .\" Add any additional description here
14 Summarize disk usage of each FILE, recursively for directories.
16 Mandatory arguments to long options are mandatory for short options too.
18 \fB\-a\fR, \fB\-\-all\fR
19 write counts for all files, not just directories
21 \fB\-\-apparent\-size\fR
22 print apparent sizes, rather than disk usage; although
23 the apparent size is usually smaller, it may be
24 larger due to holes in (`sparse') files, internal
25 fragmentation, indirect blocks, and the like
27 \fB\-B\fR, \fB\-\-block\-size\fR=\fISIZE\fR
30 \fB\-b\fR, \fB\-\-bytes\fR
31 equivalent to `\-\-apparent\-size \fB\-\-block\-size\fR=\fI1\fR'
33 \fB\-c\fR, \fB\-\-total\fR
36 \fB\-D\fR, \fB\-\-dereference\-args\fR
37 dereference FILEs that are symbolic links
39 \fB\-\-files0\-from\fR=\fIF\fR
40 summarize disk usage of the NUL\-terminated file
41 names specified in file F
44 like \fB\-\-si\fR, but also evokes a warning; will soon
45 change to be equivalent to \fB\-\-dereference\-args\fR (\fB\-D\fR)
47 \fB\-h\fR, \fB\-\-human\-readable\fR
48 print sizes in human readable format (e.g., 1K 234M 2G)
51 like \fB\-h\fR, but use powers of 1000 not 1024
54 like \fB\-\-block\-size\fR=\fI1K\fR
56 \fB\-l\fR, \fB\-\-count\-links\fR
57 count sizes many times if hard linked
60 like \fB\-\-block\-size\fR=\fI1M\fR
62 \fB\-L\fR, \fB\-\-dereference\fR
63 dereference all symbolic links
65 \fB\-P\fR, \fB\-\-no\-dereference\fR
66 don't follow any symbolic links (this is the default)
68 \fB\-0\fR, \fB\-\-null\fR
69 end each output line with 0 byte rather than newline
71 \fB\-S\fR, \fB\-\-separate\-dirs\fR
72 do not include size of subdirectories
74 \fB\-s\fR, \fB\-\-summarize\fR
75 display only a total for each argument
77 \fB\-x\fR, \fB\-\-one\-file\-system\fR
78 skip directories on different file systems
80 \fB\-X\fR FILE, \fB\-\-exclude\-from\fR=\fIFILE\fR
81 Exclude files that match any pattern in FILE.
83 \fB\-\-exclude\fR=\fIPATTERN\fR
84 Exclude files that match PATTERN.
86 \fB\-\-max\-depth\fR=\fIN\fR
87 print the total for a directory (or file, with \fB\-\-all\fR)
88 only if it is N or fewer levels below the command
89 line argument; \fB\-\-max\-depth\fR=\fI0\fR is the same as
93 show time of the last modification of any file in the
94 directory, or any of its subdirectories
96 \fB\-\-time\fR=\fIWORD\fR
97 show time as WORD instead of modification time:
98 atime, access, use, ctime or status
100 \fB\-\-time\-style\fR=\fISTYLE\fR
101 show times using style STYLE:
102 full\-iso, long\-iso, iso, +FORMAT
103 FORMAT is interpreted like `date'
106 display this help and exit
109 output version information and exit
111 SIZE may be (or may be an integer optionally followed by) one of following:
112 kB 1000, K 1024, MB 1000*1000, M 1024*1024, and so on for G, T, P, E, Z, Y.
114 PATTERN is a shell pattern (not a regular expression). The pattern
116 matches any one character, whereas
118 matches any string (composed of zero, one or multiple characters). For
121 will match any files whose names end in
123 Therefore, the command
125 .B du --exclude='*.o'
127 will skip all files and subdirectories ending in
133 Written by Torbjorn Granlund, David MacKenzie, Paul Eggert, and Jim Meyering.
135 Report bugs to <bug\-coreutils@gnu.org>.
137 Copyright \(co 2007 Free Software Foundation, Inc.
139 This is free software. You may redistribute copies of it under the terms of
140 the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
141 There is NO WARRANTY, to the extent permitted by law.
143 The full documentation for
145 is maintained as a Texinfo manual. If the
149 programs are properly installed at your site, the command
153 should give you access to the complete manual.