Searching recursively
grep -r -H "string_to_find" includes
This command will search in the recursively in the includes folder for any file type which contains the string “string_to_find” in its content. This will not find the string in filenames.
Searching Non Recursively
grep "string_to_find" public_html/*.php
This command will search in the in the public_html folder for files with the extension .php which contains the string “string_to_find” in its content. This will not find the string in filenames.