Get the directory/folder size on Linux
Linux Server February 7th, 2007At times, I do find myself needing to find out the size of the folder in certain directory on my Linux server.
And the weirdest part is; I always forget this command combinations. I’m gonna put it here so that I will remember it.
Command: du -sh /home/fendy
Display: 1.2M /home/fendyCommand: du -h /home/fendy
Display: *List of directories in the folder and their size
I learned it.


January 29th, 2009 at 7:41 pm
try to use this for more organized results:
du -sc * | sort -n
it will display the summary of all subfolders sorted by size in bytes and display the grand total size.