.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.50.1.
.TH DU "1" "February 2026" "GNU coreutils 9.10" "User Commands"
.SH NAME
du \- estimate file space usage
.SH SYNOPSIS
.B du
[\fI\,OPTION\/\fR]... [\fI\,FILE\/\fR]...
.br
.B du
[\fI\,OPTION\/\fR]... \fI\,--files0-from=F\/\fR
.SH DESCRIPTION
.\" Add any additional description here
.PP
Summarize device usage of the set of FILEs, recursively for directories.
.PP
Mandatory arguments to long options are mandatory for short options too.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-0'\fB\-0, \-\-null\fP\X'tty: link'
end each output line with NUL, not newline
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-a'\fB\-a, \-\-all\fP\X'tty: link'
write counts for all files, not just directories
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-A'\fB\-A, \-\-apparent\-size\fP\X'tty: link'
print apparent sizes rather than device usage;
although the apparent size is usually smaller, it may be
larger due to holes in ('sparse') files,
internal fragmentation, indirect blocks, etc.
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-B'\fB\-B, \-\-block\-size=\,SIZE\fP\X'tty: link'\/\fR
scale sizes by SIZE before printing them; See SIZE format below;
E.g., '\-BM' prints sizes in units of 1,048,576 bytes
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-b'\fB\-b, \-\-bytes\fP\X'tty: link'
equivalent to '\-\-apparent\-size \fB\-\-block\-size\fR=\fI\,1'\/\fR
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-c'\fB\-c, \-\-total\fP\X'tty: link'
produce a grand total
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-D'\fB\-D, \-\-dereference\-args\fP\X'tty: link'
dereference only symlinks that are listed on the command line
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-d'\fB\-d, \-\-max\-depth=\,N\fP\X'tty: link'\/\fR
print the total for a directory (or file, with \fB\-\-all\fR)
only if it is N or fewer levels below the command
line argument; \fB\-\-max\-depth\fR=\fI\,0\/\fR is the same as \fB\-\-summarize\fR
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du--files0-from'\fB\-\-files0\-from=F\fP\X'tty: link'
summarize device usage of the NUL\-terminated file names
specified in file F; if F is \-, read names from standard input
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-H'\fB\-H\fP\X'tty: link'
equivalent to \fB\-\-dereference\-args\fR (\fB\-D\fR)
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-h'\fB\-h, \-\-human\-readable\fP\X'tty: link'
print sizes in human readable format (e.g., 1K 234M 2G)
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du--inodes'\fB\-\-inodes\fP\X'tty: link'
list inode usage information instead of block usage
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-k'\fB\-k\fP\X'tty: link'
like \fB\-\-block\-size\fR=\fI\,1K\/\fR
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-L'\fB\-L, \-\-dereference\fP\X'tty: link'
dereference all symbolic links
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-l'\fB\-l, \-\-count\-links\fP\X'tty: link'
count sizes many times if hard linked
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-m'\fB\-m\fP\X'tty: link'
like \fB\-\-block\-size\fR=\fI\,1M\/\fR
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-P'\fB\-P, \-\-no\-dereference\fP\X'tty: link'
don't follow any symbolic links (this is the default)
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-S'\fB\-S, \-\-separate\-dirs\fP\X'tty: link'
for directories do not include size of subdirectories
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du--si'\fB\-\-si\fP\X'tty: link'
like \fB\-h\fR, but use powers of 1000 not 1024
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-s'\fB\-s, \-\-summarize\fP\X'tty: link'
display only a total for each argument
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-t'\fB\-t, \-\-threshold=\,SIZE\fP\X'tty: link'\/\fR
exclude entries smaller than SIZE if positive,
or entries greater than SIZE if negative
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du--time'\fB\-\-time\fP\X'tty: link'
show time of the last modification of any file in the directory,
or any of its subdirectories
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du--time'\fB\-\-time=WORD\fP\X'tty: link'
show time as WORD instead of modification time:
atime, access, use, ctime or status
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du--time-style'\fB\-\-time\-style=STYLE\fP\X'tty: link'
time/date format with \fB\-\-time\fR; see TIME_STYLE below
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-X'\fB\-X, \-\-exclude\-from=\,FILE\fP\X'tty: link'\/\fR
exclude files that match any pattern in FILE
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du--exclude'\fB\-\-exclude=PATTERN\fP\X'tty: link'
exclude files that match PATTERN
.TP
\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-x'\fB\-x, \-\-one\-file\-system\fP\X'tty: link'
skip directories on different file systems
.TP
\X'tty: link https://www.gnu.org/software/coreutils/du#du--help'\fB\-\-help\fP\X'tty: link'
display this help and exit
.TP
\X'tty: link https://www.gnu.org/software/coreutils/du#du--version'\fB\-\-version\fP\X'tty: link'
output version information and exit
.PP
Display values are in units of the first available SIZE from \fB\-\-block\-size\fR,
and the DU_BLOCK_SIZE, BLOCK_SIZE and BLOCKSIZE environment variables.
Otherwise, units default to 1024 bytes (or 512 if POSIXLY_CORRECT is set).
.PP
The SIZE argument is an integer and optional unit (example: 10K is 10*1024).
Units are K,M,G,T,P,E,Z,Y,R,Q (powers of 1024) or KB,MB,... (powers of 1000).
Binary prefixes can be used, too: KiB=K, MiB=M, and so on.
.PP
The \fB\-\-time\-style\fR STYLE argument can be full\-iso, long\-iso, iso, or +FORMAT.
FORMAT is interpreted like in \fBdate\fP(1).
Also the TIME_STYLE environment variable sets the default style to use.
.SH PATTERNS
PATTERN is a shell pattern (not a regular expression). The pattern
.B ?\&
matches any one character, whereas
.B *
matches any string (composed of zero, one or multiple characters). For
example,
.B *.o
will match any files whose names end in
.BR .o .
Therefore, the command
.IP
.B du \-\-exclude=\(aq*.o\(aq
.PP
will skip all files and subdirectories ending in
.B .o
(including the file
.B .o
itself).
.SH AUTHOR
Written by Torbjorn Granlund, David MacKenzie, Paul Eggert,
and Jim Meyering.
.SH "REPORTING BUGS"
Report bugs to: bug\-coreutils@gnu.org
.br
GNU coreutils home page:
.br
General help using GNU software:
.br
Report any translation bugs to
.SH COPYRIGHT
Copyright \(co 2026 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later .
.br
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
.SH "SEE ALSO"
Full documentation
.br
or available locally via: info \(aq(coreutils) du invocation\(aq