how to search a text in current directory code example Example: find text in folder grep -rnw '/path/to/somewhere/' -e 'pattern'