LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Finding size of a directory (https://www.linuxquestions.org/questions/linux-general-1/finding-size-of-a-directory-130054/)

chrisk5527 12-30-2003 08:40 AM

Finding size of a directory
 
I've used Linux for quite some time now and I never really was asked how to find the size of a certain directory, is this possible? If so, how can I do it.

jimieee 12-30-2003 08:44 AM

du [directory] -h --max-depth=0

-h makes output more human friendly (e.g. size in mb) max depth stops it retriving the size of directories inside the directory you want

Regards,

James

chrisk5527 12-30-2003 08:49 AM

Thanks man, I was just going to re-post saying that I figured it out.


All times are GMT -5. The time now is 10:33 PM.