Search a directory tree by name, type, age, and other conditions.
find . -type f -name "*.log"LINUX COMMAND ATLAS · COMMAND GUIDE
Search a directory tree by name, type, age, and other conditions.
find manualfind [STARTING-POINT...] [EXPRESSION]
Search a directory tree by name, type, age, and other conditions.
find . -type f -name "*.log"Find regular files with a .conf name below the current directory.
find . -type f -name '*.conf'Find files modified within the last seven 24-hour periods.
find /var/log -type f -mtime -7GNU find evaluates expressions from left to right. Quote wildcard patterns so the shell does not expand them first; take care with -delete and -exec.