Multiple choice technology operating systems

command to find a string inside a file.

  1. find

  2. grep

  3. search

  4. None

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The 'grep' command searches for patterns (strings) within files. It's the standard Unix text search utility. 'find' locates files by name/attributes, not content. There is no standard 'search' command. Grep uses regular expressions for pattern matching.