Find Files By Size

To find all files that are larger than 1 GB in size, run

find /path/ -size +1G

Example

find /var/www/clients/ -name "error.log" -size +1G

To find files older than 100 days, run

find /var/www/clients/ -name "error.log" -mtime +100 -size +1G

See find

Comments

Leave a Reply

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