Intermediate
Package: findutils
find
Search for files matching complex criteria.
Syntax
find [path] [expression]
Description
find walks a directory tree evaluating each file against expressions such as name, type, size, age or permissions, and can execute another command against every match — making it enormously more powerful than a simple filename search.
Examples
find /var/log -name "*.log"
Find all files ending in .log under /var/log
find . -type f -mtime +30
Find files not modified in the last 30 days
find /tmp -type f -size +100M -delete
Find and delete files over 100MB in /tmp
Applies to
Put it into practice