Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
add comment

6 Answers

up vote 7 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
add comment

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
add comment

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
add comment

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
add comment

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
add comment

Your Answer

 
discard

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.