The grep filter searches a file for a particular pattern of characters, and displays all lines that contain that pattern.
grep -Rw '[path where you want to searcg]' -e 'your text that you need to search'
-R : Regular Expression
-w : Match whole word
-e exp : Specifies expression with this option. Can use multiple times.
Full syntax copy-paste directly to terminal replace only text
grep -Rw '/var/www/html/' -e 'your text that you need to search'