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:
du -sh * | grep G
to give a usage summary in human readable form and grepping out any dirs with a gigabyte or moreSure it's only useful for large portions of space, but you could replace the G with an M to get more results. Searching for larger files over a gig is usually quicker and produces better results though.