du [options] … [tree] …
Summarize disk usage by tree, recursively for directories.
--max-depth=n |
Directories are not necessarily listed in alphabetical order unless
| sort -k2 is appended to the command.
pattern is a shell pattern (not a regular expression).
? matches any one character,
* matches any string (composed of zero, one or multiple characters).
Example: *.o will match files ending in .o .
Exclude all files and subdirectories ending in .o (including the file .o ).
du --exclude='*.o'
Comparing trees on different volumes will produce different sizes if they use different allocation schemes.
see ncdu