Posted by & filed under Linux.

I recently wanted to locate a specific file recursively within my directory tree. A simple way to do this is to:

find . -name .htaccess -print

In this example, we would be searching for a .htaccess file, but this could be changed to any file name, and even use wildcards like *.php.

Leave a Reply

You must be logged in to post a comment.