Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

There are times I'm over or near my quota on my shared hosting service. It can often be a chore to track down where large files are. I once found a 500mb zip file in a deeply nested directory.

I'm looking for a Linux command, where I can see how much space each directory and nested subdirectories (in the directory tree) are using, sorted in order of disc space use.

I'm unable to get the results I need with variants of the df and du commands. Thanks

share|improve this question

migrated from May 28 '13 at 12:14

This question came from our site for professional and enthusiast programmers.

Try something like:

du -s * | sort -n
share|improve this answer
worked! found a giant log.txt file. Baffled where this came from – user2398188 May 27 '13 at 22:59

Check out ncdu. Interactive disk space viewer.

share|improve this answer

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.