exam questions

Exam 101-500 All Questions

View all questions & answers for the 101-500 exam

Exam 101-500 topic 1 question 93 discussion

Actual exam question from LPI's 101-500
Question #: 93
Topic #: 1
[All 101-500 Questions]

What is the effect of the -v option for the grep command?

  • A. It enables color to highlight matching parts.
  • B. It shows the command's version information.
  • C. It only outputs non-matching lines.
  • D. It changes the output order showing the last matching line first.
  • E. It outputs all lines and prefixes matching lines with a+.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
QuangNH
Highly Voted 2 years, 5 months ago
i think C is correct
upvoted 6 times
...
Amycert
Most Recent 7 months, 1 week ago
Selected Answer: C
C is the correct one
upvoted 1 times
...
NeoSam999
8 months ago
According to man pages, man grep: -v, --invert-match Invert the sense of matching, to select non-matching lines.
upvoted 2 times
...
iwkno6
2 years, 1 month ago
correct!
upvoted 2 times
...
CuriousLinuxCat
2 years, 1 month ago
-v reverses the matching so answer is correct.
upvoted 2 times
...
Blondilu
2 years, 9 months ago
giusta
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago