Open in app
ard-Site
1 Follower
About

Sign in

1 Follower
About
Open in app

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

ard-Site

ard-Site

Aug 13, 2019·1 min read

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

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

More from ard-Site

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

More From Medium

14 Disgusting Facts About President Thomas Jefferson’s Private Life

Sal in Lessons from History

12 Things I Stole From People More Successful Than Me

Vincent Carlos in Mind Cafe

It’s Okay, Folks  —  Ted Cruz Already Announced his Retirement Weeks Ago

Mickey Desruisseaux

On Dating at Middle Age: Where are All the Grown-Up Men?

Debbie Weiss in P.S. I Love You

A Mental Trick to Make Any Task Less Intimidating

Laura Vanderkam in Forge

6 Core Exercises Everyone Should Be Doing Every Day

Joxen

10 Amusing Red Flags During a Software Engineering Interview

Dr Stuart Woolley in The Startup

7 things people who are good with money never buy

Business Insider in Business Insider

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store