Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Dec 132010
 

List the size of sub directories in the current directory

Answer:

To check the disk usage of all sub directories in the current directory, you can try the following method:

#  sudo du -h --max-depth=1

4.0K    ./src
341M    ./lib
68M     ./bin
24K     ./games
195M    ./share
36M     ./local
18M     ./sbin
18M     ./include
673M    .

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>