Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

Possible Duplicate:
How to understand what's taking up space?

What's a good command line utility/script to analyze a folder structure and find out what's taking up all the space? The granularity of df is way to large.

Specifically I'd like something that can run with limited permissions (e.g. on shared hosting) I seem to be running on Redhat, if that matters.

share|improve this question

marked as duplicate by Michael Mrozek Nov 10 '11 at 20:31

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Er...didn't you ask this a year ago? – Michael Mrozek Nov 10 '11 at 20:30
@MichaelMrozek - I vaguely remembered something like that. Now next time I'll be able to find one of these questions. Sorry for not looking too hard, I was in the "fire question away" mood. – ripper234 Nov 10 '11 at 21:23
up vote 2 down vote accepted

It's not a treemap (which I agree can be nice), but du will give you a breakdown by directory. Look into the -d option, to only show a certain level of depth.

Also note that you can sort the output, but you should use -k or similar, otherwise '1M' will sort before '2K' - probably not what you want.

Example: show size summary for all directories in current directory:

du -d 1 .
share|improve this answer
If you haven't seen ncdu you should check it out as it is even better for large scans where you wish to be able to drill down: unix.stackexchange.com/a/3964/13779 – Gerry May 22 at 16:36

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