Server Fault is a question and answer site for system and network administrators. 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

I'm running out of disk space on one of our Linux servers and I need to find out what is taking up all the space.


share|improve this question
up vote 9 down vote accepted

du -m --max-depth=6 / | sort -nr | head -n 20 would show you 20 largest directories with the biggest ones on the top, usage indicated by megabytes.

share|improve this answer
This works, thanks! – ThingsToDo Aug 23 '10 at 15:04

Windirstat was heavily inspired by kdirstat, it should be in your distro.

share|improve this answer
Thanks, I will check it out. – ThingsToDo Aug 23 '10 at 15:09

du - disk usage. - "man du" for more information.

edit: normally something like du / -hc --max-depth=1 should do it

for graphical tools, try "filelight"

share|improve this answer
Thanks, I appreciate it! – ThingsToDo Aug 23 '10 at 15:03

Gnome has Disk Usage Analyzer, i have used it in Ubuntu, but i believe it is not ubuntu only. It has a similar pie chart thing to WinDirStats gui

share|improve this answer

I routinely use:

du -cks * | sort -nr
share|improve this answer
At first glance I read that as "ducks in a row." – Hyppy Jul 16 '12 at 15:23
ducks is my mnemonic for this command. I think I stole it from an O'Reilly Linux Hacks book way back when. – dmourati Jul 17 '12 at 17:55

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.