How can I exclude directories from grep -R? Asked 07 September, 2021 Viewed 555 times linux unix grep 55 Votes 14 Answers I want to traverse all subdirectories, except the "node_modules" directory. linux unix grep Your reply on this question: Add Reply Cancel 14 Answer Order by Voted Recent Oldest Submit an answer Embed images in Question