Where did all my disk space go?

0 min, 19 secs. 70 words


Update -

Thanks to @pgr0ss for the tip, you can use -k instead of –block-size!


On my cloud servers, I’m always asking myself:

Where the !@#$% did all my disk space go?

And I know somewhere, sometime down the road, future self will be thanking present self for blogging this as a reminder.

To get the top <n> offending directories on your filesystem (replace <n> with a number)

du -x -k | sort -nr | head -<n>
view raw top10 hosted with ❤ by GitHub

via http://linuxreviews.org/quicktips/chkdirsizes/