Find the 10 largest files

Useful command, if you ever need to, and if you admin Linux you might have to more often than you want to, find the 10 largest files on disk!

$find / -type f -exec du {} \; 2>/dev/null | sort -n | tail -n 10 | xargs -n 1 du -h 2>/dev/null

and thats it!

Leave a Reply

Your email address will not be published. Required fields are marked *