0 grep for a word in all files in linux The following command will search for the string "hello" in the content of all the files within all subfolders of the specified path grep -r "hello" /path/to/search/ linux 24 Please enable JavaScript to view the comments powered by Disqus.