exam questions

Exam LFCS All Questions

View all questions & answers for the LFCS exam

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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
rhylos
6 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
10 months, 4 weeks 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago