• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 563
  • Last Modified:

Linux Command to search file

Hi Guys,

I'm using CentOS.

I want to display all the files in my computer that contain word logo.

Please inform what command needs to be used?
0
softbless
Asked:
softbless
  • 2
1 Solution
 
upanwarCommented:
You can search recursively i.e. read all files under each directory for a string.

# grep -r "logo" /

In above example system will search in entire system. If you know the perticular directry then spercify the directory name.

example:

# grep -r "logo" /data
0
 
upanwarCommented:
Here is a very good exapmle of this command for different possiblieties.

http://www.cyberciti.biz/faq/howto-search-find-file-for-text-string/
0
 
softblessAuthor Commented:
thanks
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now