Where did all my disk space go?
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
du -x -k | sort -nr | head -<n> |
- Tagged:
- Linux