Find Directory Sizes in a Folder

Finding the recursive sizes of folders and their contents in summary is easy with the disk usage (du) command.

du -hs *

Output will look something like this.

2.8M backups
72M cache
4.0K crash
288M lib
4.0K local
0 lock
266M log
4.0K mail
4.0K opt
0 run
4.0K snap
44K spool
4.1G swap1
20K tmp
1.2G www
351M www-server-installs

Leave a Reply

Your email address will not be published.