D

Dhruva Jagannath • 660 Points
Invincible

Q. Which command in Linux is used to search for a string inside a file?

  • (A) find
  • (B) search
  • (C) grep
  • (D) locate
  • Correct Answer - Option(C)
  • Views: 12
  • Filed under category Linux
  • Hashtags:

Explanation by: Dhruva Jagannath
'grep' is used to search for patterns (strings) in files using regular expressions.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.