Linux Command: find
Search files by name, size, type, time, permissions, and execute actions
Terminal — File Management
Command
$
find /var/log -name "*.log" -size +100M -mtime +7 -delete
Output
(removes log files larger than 100MB, older than 7 days)
find is the most powerful file search tool in Linux. Beyond finding by name, it filters by size, modification time, permissions, owner, and can pipe results to any command with -exec.
The combination with -delete or -exec rm makes it essential for automated cleanup in cron jobs.