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

Posted on 2010-01-08
Last Modified: 2013-11-08
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
-- f1
-- f2
-- /t2
I need the syntax that display size of t1 with all it content size  in a human readable format
Question by:mediabox
    LVL 23

    Accepted Solution

    du -sh /t1
    LVL 5

    Assisted Solution

    say du -h /t1  
    LVL 5

    Assisted Solution

    or  for example
    du -hc --max-depth=1
    which means one directory depth

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
    1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now