๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout Register Now โ†’
Menu

Categories

๐Ÿ“ File Management April 10, 2026 72

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