How to look for string inside files in Ubuntu terminal

Very useful if you want to find strings inside files on a certain location.

grep -rnw 'path/to/location' -e "string I want to search"
Code language: JavaScript (javascript)

Leave a Reply

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