du -sh

Show the total size of a directory

du -sh /path shows the total disk space used by a directory. du -sh /var/log/* shows sizes of items under /var/log. Combine with sort -rh to find the biggest directories.

Example

$ du -sh /var/log/*
4.0K  /var/log/auth.log
1.2G  /var/log/app
Tip: Type it yourself in the terminal below - reading is not the same as doing.