• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 208
  • Last Modified:

how to determin the full size of a directory and it's sub directories on centos

Hi all,
I'm newbie to centos and installed centos 5.4 on my laptop
I know how to use ls and ll some how but not efficiently
can you please tell me the syntax and thecommand that disply
the total size of directory and it's subdirectory in human readable format
for example. the following tree
/t1
-- f1
-- f2
-- /t2
----f1
----f2
I need the syntax that display size of t1 with all it content size  in a human readable format
0
mediabox
Asked:
mediabox
  • 2
3 Solutions
 
Maciej SsysadminCommented:
du -sh /t1
0
 
AsrCommented:
say du -h /t1  
0
 
AsrCommented:
or  for example
du -hc --max-depth=1
which means one directory depth
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now