How to search string in files Linux

Use this command bellow to find a pattern in the arborescence.

grep -rnw '/path/to/somewhere/' -e 'pattern'

How useful was this post?

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.