1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35.
2 .TH DU "1" "April 2010" "GNU coreutils 8.5" "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 only symlinks that are listed on the
40 \fB\-\-files0\-from\fR=\fIF\fR
41 summarize disk usage of the NUL\-terminated file
42 names specified in file F;
43 If F is \- then read names from standard input
46 equivalent to \fB\-\-dereference\-args\fR (\fB\-D\fR)
48 \fB\-h\fR, \fB\-\-human\-readable\fR
49 print sizes in human readable format (e.g., 1K 234M 2G)
52 like \fB\-h\fR, but use powers of 1000 not 1024
55 like \fB\-\-block\-size\fR=\fI1K\fR
57 \fB\-l\fR, \fB\-\-count\-links\fR
58 count sizes many times if hard linked
61 like \fB\-\-block\-size\fR=\fI1M\fR
63 \fB\-L\fR, \fB\-\-dereference\fR
64 dereference all symbolic links
66 \fB\-P\fR, \fB\-\-no\-dereference\fR
67 don't follow any symbolic links (this is the default)
69 \fB\-0\fR, \fB\-\-null\fR
70 end each output line with 0 byte rather than newline
72 \fB\-S\fR, \fB\-\-separate\-dirs\fR
73 do not include size of subdirectories
75 \fB\-s\fR, \fB\-\-summarize\fR
76 display only a total for each argument
78 \fB\-x\fR, \fB\-\-one\-file\-system\fR
79 skip directories on different file systems
81 \fB\-X\fR, \fB\-\-exclude\-from\fR=\fIFILE\fR
82 exclude files that match any pattern in FILE
84 \fB\-\-exclude\fR=\fIPATTERN\fR
85 exclude files that match PATTERN
87 \fB\-\-max\-depth\fR=\fIN\fR
88 print the total for a directory (or file, with \fB\-\-all\fR)
89 only if it is N or fewer levels below the command
90 line argument; \fB\-\-max\-depth\fR=\fI0\fR is the same as
94 show time of the last modification of any file in the
95 directory, or any of its subdirectories
97 \fB\-\-time\fR=\fIWORD\fR
98 show time as WORD instead of modification time:
99 atime, access, use, ctime or status
101 \fB\-\-time\-style\fR=\fISTYLE\fR
102 show times using style STYLE:
103 full\-iso, long\-iso, iso, +FORMAT
104 FORMAT is interpreted like `date'
107 display this help and exit
110 output version information and exit
112 Display values are in units of the first available SIZE from \fB\-\-block\-size\fR,
113 and the DU_BLOCK_SIZE, BLOCK_SIZE and BLOCKSIZE environment variables.
114 Otherwise, units default to 1024 bytes (or 512 if POSIXLY_CORRECT is set).
116 SIZE may be (or may be an integer optionally followed by) one of following:
117 KB 1000, K 1024, MB 1000*1000, M 1024*1024, and so on for G, T, P, E, Z, Y.
119 PATTERN is a shell pattern (not a regular expression). The pattern
121 matches any one character, whereas
123 matches any string (composed of zero, one or multiple characters). For
126 will match any files whose names end in
128 Therefore, the command
130 .B du --exclude=\(aq*.o\(aq
132 will skip all files and subdirectories ending in
138 Written by Torbjorn Granlund, David MacKenzie, Paul Eggert,
141 Report du bugs to bug\-coreutils@gnu.org
143 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
145 General help using GNU software: <http://www.gnu.org/gethelp/>
147 Report du translation bugs to <http://translationproject.org/team/>
149 Copyright \(co 2010 Free Software Foundation, Inc.
150 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
152 This is free software: you are free to change and redistribute it.
153 There is NO WARRANTY, to the extent permitted by law.
155 The full documentation for
157 is maintained as a Texinfo manual. If the
161 programs are properly installed at your site, the command
163 .B info coreutils \(aqdu invocation\(aq
165 should give you access to the complete manual.