Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am having a few situations to which I do not see any thing in du man pages.

1) I want to see files in a sub directory which are larger than a particular size only. 2) I use du -sh > du_output.txt I see the output as described for option -s and -h how ever what I am more interested is if the output comes in a format which is say for example

 dir0--->dir1-->dir3-->dir4 
       |             | 
       ->dir2        |-file1
                     |-file2

if the above is directory layout and I want to just see the size of individual directories in all the subdirectories then what can I do (the depth of each subdirectory is variable)

share|improve this question
add comment

3 Answers 3

up vote 4 down vote accepted

I like the gt5 utility. It use the output of du and creates a browsable listing of directories and their sizes and uses a text-mode browser such as links to display the information.

Both programs are available in the Ubuntu repositories: gt5 and links.

gt5 screenshot

share|improve this answer
    
Thanks, gt5 looks very interesting it. I'm going to install it now. Of course there is also "baobab" for GUI. –  SabreWolfy Jan 24 '11 at 11:34
add comment

Use the find command instead. The following example will show you all files that are larger than 10 megabytes:

find -size +10M

You can use du with find like this to see the size of each file:

find -size +10M -exec du -sh {} \;
share|improve this answer
add comment

find /path/to/folder -size +100k

It's not clear if you are wanting to see the size of individual files which are larger than some value, or whether you want to see folders larger than some value.

share|improve this answer
    
both the things.Basically I have to make a report and in that I have to represent it in 2 ways both of which you pointed. –  Bond Jan 24 '11 at 11:00
    
I think gt5 mentioned above may be what you are looking for. –  SabreWolfy Jan 24 '11 at 11:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.