du and df are nice, but I don't know how to filter the data they provide the way I do with SequoiaView. I would like to know which are the largest folders and the largest files in a glance.

link|improve this question

feedback

2 Answers

up vote 1 down vote accepted

Use some combination of the commands and options:

du --max-depth=1 2> /dev/null | sort -n -r | head -n20

to view only the largest few. If you'd like to use it a lot, then bind it to an alias, e.g. in bash by adding to ~/.bashrc

alias largest='du --max-depth=1 2> /dev/null | sort -n -r | head -n20'
link|improve this answer
1  
To view the largest few, you need the -r option on sort. – RedGrittyBrick Jun 22 '11 at 13:23
I submitted @RedGrittyBrick suggestion and an error redirection to /dev/null as an edit subject to approval. – Jader Dias Jun 22 '11 at 13:39
I would also use the du -H option, but it breaks the sort behavior – Jader Dias Jun 22 '11 at 13:54
feedback

You probably want xdu.

du -ax | xdu -n

There's also the more sophisticated KDE-based Filelight.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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