du(1) General Commands Manual du(1)

du - Estimate file space usage

du [--help] [-a|--all] [--apparent-size] [-B|--block-size] [-b|--bytes] [-c|--total] [-d|--max-depth] [-h|--human-readable] [--inodes] [-k ] [-l|--count-links] [-L|--dereference] [-D|--dereference-args] [-P|--no-dereference] [-m ] [-0|--null] [-S|--separate-dirs] [-s|--summarize] [--si] [-x|--one-file-system] [-t|--threshold] [-v|--verbose] [--exclude] [-X|--exclude-from] [--files0-from] [--time] [--time-style] [-V|--version] [FILE]

Estimate file space usage

Print help information.
write counts for all files, not just directories
print apparent sizes, rather than disk usage although the apparent size is usually smaller, it may be larger due to holes in ('sparse') files, internal fragmentation, indirect blocks, and the like
scale sizes by SIZE before printing them. E.g., '-BM' prints sizes in units of 1,048,576 bytes. See SIZE format below.
equivalent to '--apparent-size --block-size=1'
produce a grand total
print the total for a directory (or file, with --all) only if it is N or fewer levels below the command line argument; --max-depth=0 is the same as --summarize
print sizes in human readable format (e.g., 1K 234M 2G)
list inode usage information instead of block usage like --block-size=1K
like --block-size=1K
count sizes many times if hard linked
follow all symbolic links
follow only symlinks that are listed on the command line
don't follow any symbolic links (this is the default)
like --block-size=1M
-0, --null
end each output line with 0 byte rather than newline
do not include size of subdirectories
display only a total for each argument
like -h, but use powers of 1000 not 1024
skip directories on different file systems
exclude entries smaller than SIZE if positive, or entries greater than SIZE if negative
verbose mode (option not present in GNU/Coreutils)
exclude files that match PATTERN
exclude files that match any pattern in FILE
summarize device usage of the NUL-terminated file names specified in file F; if F is -, then read names from standard input
show time of the last modification of any file in the directory, or any of its subdirectories. If WORD is given, show time as WORD instead of modification time: atime, access, use, ctime, status, birth or creation

[possible values: atime, ctime, creation]

show times using style STYLE: full-iso, long-iso, iso, +FORMAT FORMAT is interpreted like 'date'
Print version

Display values are in units of the first available SIZE from --block-size, and the DU_BLOCK_SIZE, BLOCK_SIZE and BLOCKSIZE environment variables. Otherwise, units default to 1024 bytes (or 512 if POSIXLY_CORRECT is set).

SIZE is an integer and optional unit (example: 10M is 10*1024*1024). Units are K, M, G, T, P, E, Z, Y (powers of 1024) or KB, MB,... (powers of 1000).

PATTERN allows some advanced exclusions. For example, the following syntaxes are supported: ? will match only one character * will match zero or more characters {a,b} will match a or b

v0.0.26

du 0.0.26