Find all large files on a Linux machine
1 find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
DZone Snippets > peter > find
13379 users tagging and storing useful source code snippets
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
Peter Cooperx http://www.petercooper.co.uk/
1 find / -type f -size +20000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }'
1 find -type l -maxdepth 1 -name '*.*' | xargs -n 1 basename | xargs -i find /home/virtual/{}/var/www -type f -size +8192k -ls
1 find *.orig.jpg | perl -p -e 's/\n//; $x = $_; s/\.orig/\.large/; $_ = "cp " . $x . " " . $_ . "\n"'