🎁 New User? Get 20% off your first purchase with code NEWUSER20 Register Now →
Menu

Categories

📁 File Management April 10, 2026 2

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.

Share this tip