The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-24-2008
divz divz is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 21
Find the size of a directory

Hi,

I would really appreciate if you could help me with this. I have a directory structure like this :-
/data
Under data i have directories /data1 , /input_files , /output_files etc . Under these directories I have other subdirectories.

What i am looking for is to find out the size of all the directories under /data.

for example, if i do du -s /data/data1, i get : -
du -s /data/data1
2 /data/data1

I am looking for somtihng which will give me size of all the directories in /data.

Thanks in advance