Question: Checking my work in Linux I want to search for all files in the directory ~/Documents that contain the keyword mount, case sensitive, and as

Checking my work in Linux

I want to search for all files in the directory ~/Documents that contain the keyword "mount", case sensitive, and as the entire word. Words like amount, submount, demount, etc, should not be found in the results; just 'mount'. Additionally, I only want to see the name(s) of the file(s) that have matches as a result of running the command. What command would I use? Hate mail can be directed to /dev/null

grep -rf mount Documents/*

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!