Skip to main content

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

Comments

2 comments

  • cPanelKenneth
    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
  • Mr_G
    Thanks! The SSH worked, but not cPnanel.
    0

Please sign in to leave a comment.