du flags & options

-h, --human-readable

Show sizes in human-readable format (K, M, G).

du -h

-s, --summarize

Show only a total for each argument instead of listing every subdirectory.

du -sh /var/log
du -sh */

-d, --max-depth

Limit the depth of directory listing.

du -h -d 1
du -h --max-depth=2 /home

-a, --all

Show sizes for individual files, not just directories.

du -ah

-c, --total

Show a grand total at the end.

du -sh /var/log /tmp -c

--exclude

Exclude files matching a pattern.

du -sh --exclude="*.log" /var
du -sh --exclude="node_modules" .

-k

Show sizes in kilobytes (default on some systems).

du -k /tmp

-m

Show sizes in megabytes.

du -m /home

--apparent-size

Show apparent sizes rather than disk usage. Useful for sparse files.

du -h --apparent-size file.img