How to search for a text string in folders and files?
How do I search for text in all files under for example public_html?
-
There are at least a couple of ways to do that. 1. use the grep command via SSH. grep -Ri foo public_html
will search all files within public_html for the string 'foo' 2. within the cPanel file manager, there is a search field in the upper right corner. That does the equivalent of the grep command.0 -
Thanks! The SSH worked, but not cPnanel. 0
Please sign in to leave a comment.
Comments
2 comments