Finding Large Files

I was looking to delete some large files on my mac, but was having a hard time identifying the 1 Gig or larger files. I droped down to the Terminal because I knew the du command helps you identify file sizes, but it is a wealth of information since it is recursive. I sorted through this information with with the grep command. Here was my one liner to find what I needed:

du -h | grep '^[0-9]\{1,\}\.[0-9]\{1,\}G'

Just navigate to the directory that you want to start the recursive search from and then type that. Hope it helps.

Be Sociable, Share!

Leave a Reply