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/

Ryan Sukale

Ryan is just a regular guy next door trying to manage his life and finances.

You may also like...