du

Name

du -- estimate file space usage

Description

The specification for "du" is as specified in the SUS but with the following differences as listed below.

Differences

--block-size=SIZE

use SIZE-byte blocks

-b, --bytes

print size in bytes

-c, --total

produce a grand total

-D, --dereference-args

dereference PATHs when symbolic link

-h, --human-readable

print sizes in human readable (e.g., 1K 234M 2G)

--kilobytes

equivalent to --block-size=1024

--l, --count-links

count sizes many times if hard linked

-L, --dereference

dereference all symbolic links

-m, --megabytes

equivalent to --block-size=1048576

-r

This option (as specified in the SUS) is not supported

-S, --separate-dirs

do not include size of subdirectories

-X FILE, --exclude-from=FILE

Exclude files that match any pattern in FILE

--exclude=PAT

Exclude files that match PAT

--max-depth=N

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

--version

output version information and exit