Linux — How to search for a certain word, text, or number (text pattern) in all files

ard-Site
1 min readAug 13, 2019

--

This 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

--

--

ard-Site
ard-Site

Written by ard-Site

Tutorials about Linux, Java and information about IT — https://ard-site.net

No responses yet