- Find the partition that's low on space and cd into it
- Do du -sh * | grep G to give a usage summary in human readable form and grepping out any dirs with a gigabyte or more
- Look at the results and see if there's any dirs you could remove, or go into further
- Repeat steps 2 and 3 until you've gone through the directory tree, removing any unnecessary files and directories
My thoughts on books, games, politics, technology, San Diego, and everything else I enjoy in life.
Friday, March 09, 2007
Quick Sysadmin Tip
Ever noticed you're running out of room on a partition and you'd like to free up some space quickly that may be hidden in unused directories? Here's a quick and easy way using the du command: