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)

link|improve this question

72% accept rate
feedback

3 Answers

up vote 3 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

link|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
feedback

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 {} \;
link|improve this answer
feedback

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.

link|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
feedback

Your Answer

 
or
required, but never shown

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