LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to fing the sises of selected set of directories (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-fing-the-sises-of-selected-set-of-directories-540629/)

cnm 03-26-2007 02:09 AM

How to fing the sises of selected set of directories
 
Is there a command to find the sises of the directories. (only a selected set of directories)

ernst 03-26-2007 02:22 AM

In a terminal window change to the directory you are interested in.
E.g.

cd myData

then type

du -h

to see documentation for du (disk use) type:
man du

If you want to see free space use df -h (disk free)

ernst 03-26-2007 02:24 AM

In KDE Konqueror you can right click on a directory and then select Properties in the pop-up menu.

It will show the size of the whole subtree.

cnm 03-26-2007 04:26 AM

Problem is that when du -h is used entire list of directories keep appearing. how to filter that



Quote:

Originally Posted by ernst
In a terminal window change to the directory you are interested in.
E.g.

cd myData

then type

du -h

to see documentation for du (disk use) type:
man du

If you want to see free space use df -h (disk free)


jschiwal 03-26-2007 04:37 AM

Use "du" in the directory above the one you are interested in, and use the -s (summary) option so that the contents aren't included. The manpage and "du --help" would have helped you find the answer.

henrysukumar 03-26-2007 09:52 AM

try to grep the directory you want as 'du -h |grep direname'


All times are GMT -5. The time now is 05:59 AM.