LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   directory size? (https://www.linuxquestions.org/questions/linux-newbie-8/directory-size-507185/)

maggus 12-03-2006 04:02 PM

directory size?
 
Probably this is quite obvious, but I can't seam to find the answer using search in phorums.

Question: How can I calculate directory size? In another words I need to know summarized amount of bytes occupied by all files in directory.

Thanks,
Mike

acid_kewpie 12-03-2006 04:04 PM

just use the du command, e.g. du -h /home/bob/

maggus 12-03-2006 04:19 PM

Thanks
 
Ok, thanks. I expected it should be something simple like that :-)

matthewg42 12-03-2006 04:34 PM

The -s option will print totals for each directory specified on the command line, whereas without this option, you get a line of output for each sub-directory.

maggus 12-03-2006 04:45 PM

Yes, I have figured that out already.
Thanks


All times are GMT -5. The time now is 11:13 AM.