Find files that contain a text string
grep -lir “text to find” *
The -l switch outputs only the names of files in which the text occurs (instead of each line containing the text), the -i switch ignores the case, and the -r descends into subdirectories.
Find files containing search terms on Ubuntu
To find files containing keywords, linux has a powerful command called grep, which you can use to find the lines inside any file or a list of files.
grep -i -n ‘text to search’ *