How do I find all files containing specific text on Linux?

find / -type f -exec grep -H 'text-to-find-here' {} \; 

grep -rnw '/path/to/somewhere/' -e 'pattern' 

grep -Ril "text-to-find-here" /

ack 'text-to-find-here'

Viet Luu has written 146 articles

Leave a Reply