Finding big files in Unix

Assuming Perl is running on the server, this is quite neat:
find / -mount -noleaf -type f -size +10000k -print0 | xargs -0 ls -lhSr | perl -ne '/(\S+\s+){4}(\S+)\s+(\S+\s+){3}(.*)/ and printf("%*s %s\n",7,$2.":",$4);'

Comments

Leave a Reply

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