Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

       |             | 
       ->dir2        |-file1

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

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

To only show folders over 1GB in size:

du -h --threshold=1G

You may also want to order by size, to easily find the biggest ones.
du -h --threshold=1G | sort -hn

share|improve this answer

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

Your Answer


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.