Search files for strings
Use the find command to search for files that exist in your Linux system.
find <Directory name> <Option> <File name>
Set each argument to a value and perform the search.
The directory name is the name of the directory from which the file search will be performed.
The find command searches the specified directory and all subdirectories below it.（An error will occur if you search for a directory that cannot be referenced with permissions.）
option allows you to specify what files to search. For example, you can search only for directories, or only for files that belong to a certain owner.
|[root@Lion ~]# find / -name httpd.conf
↑Search for the httpd.conf file in the root directory (/)
[root@Lion ~]# find /var -name messages
↑Search for the messages file under the var directory