Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam LFCS topic 1 question 60 discussion

Actual exam question from Linux Foundation's LFCS
Question #: 60
Topic #: 1
[All LFCS Questions]

What is the effect of the egrep command when the -v option is used?

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

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
rhylos
2 years, 8 months ago
Correct. To invert the Grep output , use the -v flag. The -v option instructs grep to print all lines that do not contain or match the expression. The –v option tells grep to invert its output, meaning that instead of printing matching lines, do the opposite and print all of the lines that don't match the expression.
upvoted 1 times
...
Borbz
3 years, 1 month ago
Correct. -v or --invert-match is for selecting non-matching lines.
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 ...