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 is specifically designed to search for patterns (strings) inside files. The find command (A) searches for files and directories by name/attributes, not content within files. Search (C) is not a standard Unix command. Grep is the standard tool for content searching.