Solved

Linux Command to search file

Posted on 2011-03-20
3
550 Views
Last Modified: 2012-05-11
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
Comment
Question by:softbless
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
upanwar earned 500 total points
ID: 35178126
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
 
LVL 12

Expert Comment

by:upanwar
ID: 35178138
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
 

Author Closing Comment

by:softbless
ID: 35178191
thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now