Unix- Checking biggest size for each folder ?

Posted on 2012-09-12
Last Modified: 2012-09-13
I have following /dumpbackup folder which is almost full, I wanted to know on which subfolder that /dumpbackup have biggest size ? what should the unix command ?

Filesystem             size   used  avail capacity  Mounted on
/dev/md/dsk/100       7.0T   6.4T   528G    93%    /dumpbackup
Kyah Syb_1_Prd> ls
Syb_2_Prd           Syb_1_Prd               loadsearch             migrate                old                    restore
Syb_2_Prd      Bkpserver                  lost+found             nohup.out              reptosearch            upgrade_do_not_delete
Kyah Syb_1_Prd>
Question by:motioneye
    1 Comment
    LVL 84

    Accepted Solution

    du  /dumpbackup | sort -n

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. Please see for the updated article. It is avail…
    I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    745 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

    15 Experts available now in Live!

    Get 1:1 Help Now