← Back to Archives

Hunting for Disk Space

hacks

So, I totally ran out of disk space today... 50GB... who woulda thunk it? Here's a command you can use to help you in deciding what to prune (if you've got folders of crap lying around like I do):

du -sk * | sort -n | tail

It will display a list of the biggest folders/files in the current directory.