Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

1 Answer 1

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

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