LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   show size of all filesin a directory (https://www.linuxquestions.org/questions/linux-newbie-8/show-size-of-all-filesin-a-directory-98388/)

watashiwaotaku7 09-29-2003 06:22 PM

show size of all filesin a directory
 
what is the command for displaying the size of a directory plus all of its subdirectories and files, ive done soem searching and am terribly emberassed by my innability to find an answer

AltF4 09-29-2003 06:29 PM

try "du -s -k directory_to_count"

details: "man du"

watashiwaotaku7 09-29-2003 06:36 PM

thanks a lot

AltF4 09-29-2003 06:38 PM

you're welcome

Electro 09-29-2003 11:49 PM

Another way:
ls -Rhal desire_directory

You may want to redirect it to a file so you can easily view everthing. Some terminals can not hold a lot of lines.


All times are GMT -5. The time now is 11:30 PM.