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 the set of FILEs, 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 NUL, not 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       The SIZE argument is an integer and  optional  unit  (example:  10K  is
116       10*1024).   Units  are  K,M,G,T,P,E,Z,Y  (powers  of 1024) or KB,MB,...
117       (powers of 1000).  Binary prefixes can be used, too: KiB=K, MiB=M,  and
118       so on.
119

PATTERNS

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

AUTHOR

132       Written  by  Torbjorn  Granlund,  David MacKenzie, Paul Eggert, and Jim
133       Meyering.
134

REPORTING BUGS

136       GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
137       Report any translation bugs to <https://translationproject.org/team/>
138
140       Copyright © 2019 Free Software Foundation, Inc.   License  GPLv3+:  GNU
141       GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
142       This  is  free  software:  you  are free to change and redistribute it.
143       There is NO WARRANTY, to the extent permitted by law.
144

SEE ALSO

146       Full documentation <https://www.gnu.org/software/coreutils/du>
147       or available locally via: info '(coreutils) du invocation'
148
149
150
151GNU coreutils 8.31               October 2019                            DU(1)
Impressum