← Back to Blog

Linux find Command: 20 Practical Examples

Master the Linux find command: search by name, type, size, date, permissions, and execute actions on results.

Essential Examples

# Find by name\nfind . -name '*.js'\nfind . -iname 'readme*'  # case-insensitive\n\n# Find by type\nfind . -type f   # files only\nfind . -type d   # directories only\n\n# Find by size\nfind . -size +100M   # larger than 100MB\nfind . -size -1k     # smaller than 1KB\n\n# Find by date\nfind . -mtime -7     # modified in last 7 days\nfind . -newer ref.txt # newer than ref.txt\n\n# Find and execute\nfind . -name '*.log' -delete\nfind . -type f -exec chmod 644 {} \;

Try It Free

Use our free online tool — 100% client-side, no data leaves your browser.

Open Chmod Calculator

Related Tools & Articles