Multiple choice technology

Command to check for a pattern in a file

  1. find

  2. grep

  3. pattern

  4. check

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

The grep command searches files for patterns matching regular expressions. find locates files by name/attributes, not content patterns. pattern and check are not valid commands.