Posts Tagged ‘files’

HOWTO: Find the Top 50 Largest Files in Linux/Unix

Thursday, November 12th, 2009

This should be linux/unix OS agnostic.

sudo find . -type f -exec du -m {} \; | sort -nr | head -50

If you need more or less files, adjust the last digit following ‘head’.

-boogybren