find -name

Find files by name anywhere in the filesystem

find searches recursively for files matching criteria. find /etc -name '*.conf' searches all conf files under /etc. Always quote the pattern to prevent shell globbing.

Example

$ find /etc -name '*.conf' 2>/dev/null | head -3
/etc/nginx/nginx.conf
/etc/ssh/sshd_config
Tip: Type it yourself in the terminal below - reading is not the same as doing.