Multiple choice

Which of the following options used with grep command is used to print out the line number before printing the matching line?

  1. -x

  2. -n

  3. -v

  4. -f

  5. -c

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

This option, used with grep command, is used to print out the line number before printing the matching line.