Tuesday, February 5, 2013

Command to find directory size in linux

du -sh <directory name>: 


Displays directory size in human readable format.

The sample output will be as following:

84M   <directory name>

du -sh ./* : 

Shows all the sub directories size in a human readable format.