Multiple choice technology operating systems

What is the use of ‘grep’ command

  1. ‘grep’ is a pattern search command. It will display the line which contains the pattern

  2. ‘grep’ is a pattern search command. It will display thepattern alone

  3. ‘grep’ can be used to search the patterns with the conditions

  4. It is an efficient command to search the multiple patterns.

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

The grep command searches input files for lines matching a specified pattern and prints those entire lines. It does not just output the matched pattern itself, nor is its primary definition restricted to conditional or multi-pattern searches, making the other options incorrect.