A user runs the command `grep '^root' /etc/passwd` and sees only the line starting with 'root'. They now want to find all lines that do NOT start with 'root'. Which command should they use?
The -v option inverts the match, so grep prints lines that do not match the pattern. With the anchor ^root, it selects all lines that do not begin with 'root'. This is exactly what the user needs. The command is efficient and standard for excluding lines based on a pattern.
Why this answer
To invert a match in grep, the -v option is used. Combined with the anchored pattern ^root, it prints all lines that do not begin with 'root'. The other options either change case sensitivity, add line numbers, or count matches, but none of them invert the selection to exclude the matched lines.
Exam trap
The trap here is forgetting that grep's -v option inverts the match, or confusing it with -i for case-insensitivity.