nerdexam
LPI

101-350 · Question #70

What is the effect on the grep command when the -v option is used?

The correct answer is D. It inverts the matching to select non-matching lines. See the full explanation below for the reasoning.

Question

What is the effect on the grep command when the -v option is used?

Options

  • AIt enables multi-line matching on the input.
  • BIt is a shortcut for the vgrep command.
  • CIt sets the verbose flag and increases the amount of information that is provided.
  • DIt inverts the matching to select non-matching lines.

How the community answered

(53 responses)
  • A
    2% (1)
  • B
    8% (4)
  • C
    6% (3)
  • D
    85% (45)

Community Discussion

No community discussion yet for this question.

Full 101-350 Practice