LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   A really dumb question (https://www.linuxquestions.org/questions/linux-general-1/a-really-dumb-question-26211/)

jkcunningham 07-20-2002 11:19 AM

A really dumb question
 
Here's a really dumb question: how do I find the aggregate size of all the files under a certain directory (including subdirectories)?

Thanks

jamaso 07-20-2002 11:38 AM

you could check konqueror --view--detailed view list . It gives you lots of info ( size/filetype/modified/permissions/owner/group/link ) .

5amYan 07-20-2002 11:44 AM

Nautilus _ look at the properties. for a directory/folder it will teeyou how many items are in it and their total size

zeky 07-20-2002 11:45 AM

erm.... df -h ?

jkcunningham 07-20-2002 11:54 AM

I am looking for a command line solution here so I can use it in a script.

df -h just shows me the total useage. I want to find the useage in a particular branch of the directory tree.


Thanks.

sarin 07-20-2002 11:55 AM

du -sh *

Should list all directories and usage

du -sh

will give it for the whole of present directory

jkcunningham 07-20-2002 11:57 AM

du. Ahhh - thank you. I knew there was a command, I just couldn't remember it.

Thanks again,


All times are GMT -5. The time now is 05:52 PM.