How to search the complete drive/directory for file containing specific string faster?

Solution Verified - Updated -

Issue

  • What is the fastest way to find a file that matches a specific text/string on the entire drive/directory?
  • Tried grep -R and find commands but both take a very long time, what is the best way to find?

Environment

  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content