Linux — How to search for a certain word, text, or number (text pattern) in all filesard-Site·Follow1 min read·Aug 13, 2019--ListenShareThis commands work on Linux (Ubuntu, Debian, etc.)Search in the whole filesystem:grep -r "TEXTPATTERN" /Search in a certain folder (home folder):grep -r "TEXTPATTERN" /home