du
Summarize disk usage (of blocks) of each FILE, recursively for directories.
Comparing trees on different volumes will produce different sizes if using different allocation schemes.
--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 .
du --exclude='*.o'
will skip all files and subdirectories ending in .o (including the file .o ).