grep -in "search_term" filename
grep -nr search_term directory
grep -l "search_term" \*
List all lines not/invert-match with the search_term: grep -nv "search_term" filename
grep -lr search_term .
.
represents current directorygrep -xr tabular ..
..
represents the parent directorygrep --exclude-dir "_site" -nr "search_text" ."
Bonus command:
find . -iname *.py | xargs grep --color 'search-term'
Reference: