Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-03-2011, 01:54 PM   #1
LQ Newbie
Registered: Oct 2010
Distribution: RH/Ubuntu
Posts: 5

Rep: Reputation: 0
Searching for text string in all files

Is it possible to search ALL files on a system for a specific text string? I've been messing around with grep without any luck.

Thanks in advance!
Old 03-03-2011, 02:00 PM   #2
Registered: Aug 2009
Location: /Universe/Earth/India/Pune
Distribution: Slackware64 -Current, Linux Mint 17.1
Posts: 828

Rep: Reputation: 129Reputation: 129
Yes, I suppose you just have to type -

$ sudo find / -name "string-name"
Old 03-03-2011, 02:03 PM   #3
LQ Newbie
Registered: Oct 2010
Distribution: RH/Ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
Nevermind, I found the "-R" (recursive) option for grep!


files, search, text

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching a specific directory for files containing a text string lothwen Linux - Newbie 1 11-20-2010 11:58 AM
searching for Text within files. waelaltaqi Linux - Software 2 06-18-2007 03:56 PM
searching for a string of charcters in some files hhegab Programming 2 04-16-2005 06:07 PM
Searching text files by content will103 Linux - Software 1 01-24-2005 08:43 AM
searching inside text files minm Linux - Newbie 2 01-09-2005 12:56 AM

All times are GMT -5. The time now is 02:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration