LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   list contents of directory without listing contents (https://www.linuxquestions.org/questions/linux-newbie-8/list-contents-of-directory-without-listing-contents-453908/)

baddah 06-12-2006 01:46 AM

list contents of directory without listing contents
 
hi,

say i've got a directory with 10000 files in it,and i'd like to display the size of the directory(and its contents),but not list the contents(the 1000ofiles) how can i do it?i've tried something like

Code:

ls -ldh dirname
but that does not seem to work,the size it lists is much smaller than the size i'm expecting.I'm sure theres just some little command,i've looked at the man pages,but i must have missed it.

Thanks

acid_kewpie 06-12-2006 03:45 AM

are you not just after du?

baddah 06-12-2006 04:02 AM

thanks,exactly what i was looking for.


All times are GMT -5. The time now is 07:41 PM.