LPIC-1 101-500 Exam · Objective 103.7

Counting matching lines

103.7Basic

events.txt has one line with error twice and one line with error once.

Print the number of lines containing error, not the total number of occurrences.

Which command is correct?

Counting matching lines · Answer choices
Question IDKP-103-111
EnvironmentGNU grep 3.x
Last technical review2026-08-12
Report an error or rights issue
Progress and questions

Path & Pass is an independent learning site and is not affiliated with any certification body. Questions are original practice content based on published objectives.