Find String in Files in Linux

To find some string within files in Linux, you can use this command

grep -rnw '/your/path/' -e "find this string"

-r means recursive
-n means line number
-w means match the whole word 🙂

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *