find - Search Files in Linux
From the Linux Essential Commands cheat sheet · Search & Find · verified Jul 2026
find - Search Files
Search for files and directories by name, type, size, and more
bash
# Find by name
find /path -name "filename.txt"
find . -name "*.js"
# Find by type
find . -type f # Files only
find . -type d # Directories only
# Find by size
find . -size +100M # Larger than 100MB
find . -size -1M # Smaller than 1MB
# Find and execute
find . -name "*.log" -delete
find . -type f -exec chmod 644 {} \;✅ -name searches by filename (case-sensitive)
💡 Use -iname for case-insensitive search
🔍 -exec runs commands on found files
⚡ . searches current directory and subdirectories
searchfindfiles