Review your favorite Linux distribution.
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-22-2011, 06:32 PM   #1
LQ Newbie
Registered: Feb 2008
Posts: 6

Rep: Reputation: 0
Finding a phrase on centos

Okay, I currently have Cpanel on my VPS, and i was checking the relay log on the WHM. The problem is, it is sending emails to At first i didn't care, but then I noticed thats an actual domain that has been registered. I have already change my root directory with .forward to email me, but i don't know where else this email has been put. I would like to know is there a way to search the entire system for for anything that contains "".
Old 03-22-2011, 08:25 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,891

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Since there are files and folders that the normal user doesn't have permission to read, you have to do the search as root.
sudo find / -type f | grep -i "changeme"
or possible
sudo find / -type f | xargs grep -i "changeme"

If you don't have sudo setup, just su to root then run the command above without the sudo part.


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
finding version of CentOS abhayns Linux - Newbie 5 01-03-2011 06:35 AM
I don't understand the meaning of a phrase... Valmargaret General 16 02-14-2010 08:07 AM
i finding problem in install the centos 5.2 in virtulbox lcrukman Member Intro 2 03-06-2009 03:05 AM
find exact phrase subnet_rx Linux - General 1 03-29-2008 08:28 PM
grep a phrase degraffenried13 Linux - General 1 04-04-2004 11:10 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:31 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