How to search for a text string in folders and files?

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,608
77
308
cPanel Access Level
Root Administrator
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.
 
  • Like
Reactions: cPanelLauren