It’s not always easy to remember the name of file which contains exactly what we want to search.
In linux, we can search without knowing the name of the file with the command grep, and of course we should specify a path.
grep [OPTIONS] [-e PATTERN | -f FILE] [FILE...]
Search “Hello world” in my home/test/grep directory :
(-R means Recursive)
grep -R "Hello world" ~/test/grep/
Another example :
(-h means not display the files names)
grep -R -h "Hello world" ~/test/grep/