The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
  

"find" Command for Ultimate File Search



The find command is used to search for files on a hard drive based on various file attributes. It is an incredibly powerful tool that can search for files using any characteristic. Its only drawback is that searching for files can take some time.

Commonly used options include:

Example::
$ find / -name 'README' 2> /dev/null←Search for files named "README" starting from the root directory
/etc/httpd/conf.d/README
/etc/fonts/conf.d/README
/etc/rc.d/init.d/README
/etc/pki/ca-trust/extracted/openssl/README
/etc/pki/ca-trust/extracted/java/README
/etc/pki/ca-trust/extracted/pem/README
$ find /var/log/ -mtime -7 ←Search for files modified within the last 7 days

For more details on find command parameters and example references, please check the provided link.