DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Find All Large Files On A Linux Machine
Finds all files over 20,000KB (roughly 20MB) in size and presents their names and size in a human readable format:
find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }' 





Comments
Snippets Manager replied on Thu, 2010/06/17 - 3:34am
find . -size +20000k -exec du -h {} \;that's good enough for me.Kevin White replied on Mon, 2011/04/04 - 6:26pm
find / -type f -size +20000k -exec ls -lh {} \; 2> /dev/null | awk '{ print $NF ": " $5 }' | sort -hrk 2,2Snippets Manager replied on Fri, 2009/04/17 - 12:17pm
find / -type f -size +20000k -exec ls -lh {} \; 2> /dev/null | awk '{ print $NF ": " $5 }' | sort -nrk 2,2Next step will be to direct find to skip virtual directories like /proc and /sysSnippets Manager replied on Fri, 2009/04/17 - 12:17pm
Snippets Manager replied on Thu, 2009/03/12 - 1:42am
Snippets Manager replied on Tue, 2008/07/22 - 10:50am
Snippets Manager replied on Tue, 2008/04/08 - 5:19am
Snippets Manager replied on Tue, 2008/02/26 - 11:55pm