CompTIA Linux+ Powered by LPI (LX0-103) — Question 7
What is the effect of the egrep command when the -v option is used?
Answer options
- 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.
Correct answer: B
Explanation
The correct answer is B because the -v option in egrep is specifically designed to invert the match, resulting in the display of only non-matching lines. The other options describe different functionalities that are not related to the -v option.