~$ sudo apt-get

Fast large file finder

by on Jan.20, 2010, under Linux

The following will display all files over 100MB in size on the server except for those in /proc.

find / -path /proc -prune -o -type f -size +102400k -printf "%s %h/%f\n" | sort -rn -k1 | head -n 50 | awk '{ print $1/1048576 "MB" " " $2}'

For a specific case, multiple paths.

find / -path /images -prune -o -path /var/run/sr-mount -prune -o -path /proc -prune -o -type f -size +102400k -printf "%s %h/%f\n" | sort -rn -k1 | head -n 50 | awk '{ print $1/1048576 "MB" " " $2}'


Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...