How do I search for a word in a folder and subfolders in Linux?

How do I search for a word in a folder and subfolders in Linux?
Answer
To Search Subdirectories
To include all subdirectories in a search, add the -r operator to the grep command. This command prints the matches for all files in the current directory, subdirectories, and the exact path with the filename.
 

Tìm kiếm

Back
Top