Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com May 28 '13 at 12:14

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

2 Answers 2

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.