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.

TIA

link|improve this question

62% accept rate
feedback

6 Answers

up vote 5 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.

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

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

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

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"

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

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

link|improve this answer
feedback

I routinely use:

du -cks * | sort -nr
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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