Logo
Web01
Ch4os1@web01:~/commands/find
← View all bash commands

find

Search for files in a directory hierarchy.

Examples

find /var/www -name index.html
              

Search for the file 'index.html' in the /var/www directory.

find . -type f -name '*.log'
              

Find all log files in the current directory and subdirectories.

Notes

This command affects only the current shell session.