Search notes:

Shell command: du

Determine directory's size including subdirectories:
$ du -hS /var

Find directories that occupy the most space

$ du -cks root/dir | sort -rn | head
Compare with the Perl script find_large_directories.pl

du -sh * vs du -h --max-depth=1

du -sh * takes into account only hidden files (or directories?)
du -h --max-depth=1 also reports the summary for the current directory (.).

See also

df
Shell commands
Filesystem

Index