1DU(1)                            User Commands                           DU(1)
2
3
4

NAME

6       du - estimate file space usage
7

SYNOPSIS

9       du [OPTION]... [FILE]...
10       du [OPTION]... --files0-from=F
11

DESCRIPTION

13       Summarize disk usage of each FILE, recursively for directories.
14
15       Mandatory  arguments  to  long  options are mandatory for short options
16       too.
17
18       -0, --null
19              end each output line with 0 byte rather than newline
20
21       -a, --all
22              write counts for all files, not just directories
23
24       --apparent-size
25              print apparent sizes,  rather  than  disk  usage;  although  the
26              apparent  size is usually smaller, it may be larger due to holes
27              in ('sparse') files, internal  fragmentation,  indirect  blocks,
28              and the like
29
30       -B, --block-size=SIZE
31              scale  sizes  by  SIZE  before printing them; e.g., '-BM' prints
32              sizes in units of 1,048,576 bytes; see SIZE format below
33
34       -b, --bytes
35              equivalent to '--apparent-size --block-size=1'
36
37       -c, --total
38              produce a grand total
39
40       -D, --dereference-args
41              dereference only symlinks that are listed on the command line
42
43       -d, --max-depth=N
44              print the total for a directory (or file, with --all) only if it
45              is   N   or  fewer  levels  below  the  command  line  argument;
46              --max-depth=0 is the same as --summarize
47
48       --files0-from=F
49              summarize disk usage of the NUL-terminated file names  specified
50              in file F; if F is -, then read names from standard input
51
52       -H     equivalent to --dereference-args (-D)
53
54       -h, --human-readable
55              print sizes in human readable format (e.g., 1K 234M 2G)
56
57       --inodes
58              list inode usage information instead of block usage
59
60       -k     like --block-size=1K
61
62       -L, --dereference
63              dereference all symbolic links
64
65       -l, --count-links
66              count sizes many times if hard linked
67
68       -m     like --block-size=1M
69
70       -P, --no-dereference
71              don't follow any symbolic links (this is the default)
72
73       -S, --separate-dirs
74              for directories do not include size of subdirectories
75
76       --si   like -h, but use powers of 1000 not 1024
77
78       -s, --summarize
79              display only a total for each argument
80
81       -t, --threshold=SIZE
82              exclude  entries  smaller  than  SIZE  if  positive,  or entries
83              greater than SIZE if negative
84
85       --time show time of the last modification of any file in the directory,
86              or any of its subdirectories
87
88       --time=WORD
89              show  time  as WORD instead of modification time: atime, access,
90              use, ctime or status
91
92       --time-style=STYLE
93              show times using STYLE, which can be: full-iso,  long-iso,  iso,
94              or +FORMAT; FORMAT is interpreted like in 'date'
95
96       -X, --exclude-from=FILE
97              exclude files that match any pattern in FILE
98
99       --exclude=PATTERN
100              exclude files that match PATTERN
101
102       -x, --one-file-system
103              skip directories on different file systems
104
105       --help display this help and exit
106
107       --version
108              output version information and exit
109
110       Display   values  are  in  units  of  the  first  available  SIZE  from
111       --block-size, and the DU_BLOCK_SIZE, BLOCK_SIZE and BLOCKSIZE  environ‐
112       ment  variables.   Otherwise,  units  default  to 1024 bytes (or 512 if
113       POSIXLY_CORRECT is set).
114
115       SIZE is an integer and optional unit (example:  10M  is  10*1024*1024).
116       Units  are K, M, G, T, P, E, Z, Y (powers of 1024) or KB, MB, ... (pow‐
117       ers of 1000).
118
119       GNU  coreutils  online  help:  <http://www.gnu.org/software/coreutils/>
120       Report du translation bugs to <http://translationproject.org/team/>
121

PATTERNS

123       PATTERN  is  a shell pattern (not a regular expression).  The pattern ?
124       matches any one character, whereas * matches any  string  (composed  of
125       zero,  one  or  multiple  characters).  For example, *.o will match any
126       files whose names end in .o.  Therefore, the command
127
128              du --exclude='*.o'
129
130       will skip all files and subdirectories ending in .o (including the file
131       .o itself).
132

AUTHOR

134       Written  by  Torbjorn  Granlund,  David MacKenzie, Paul Eggert, and Jim
135       Meyering.
136
138       Copyright © 2013 Free Software Foundation, Inc.   License  GPLv3+:  GNU
139       GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
140       This  is  free  software:  you  are free to change and redistribute it.
141       There is NO WARRANTY, to the extent permitted by law.
142

SEE ALSO

144       The full documentation for du is maintained as a  Texinfo  manual.   If
145       the  info and du programs are properly installed at your site, the com‐
146       mand
147
148              info coreutils 'du invocation'
149
150       should give you access to the complete manual.
151
152
153
154GNU coreutils 8.22               October 2018                            DU(1)
Impressum