Multiple choice technology

What will be the output of the above command?

  1. Will return all lines containing the “svu dept” word. Search will be case insensitive.

  2. Will return all lines containing the “svu dept” word. Search will be case sensitive.

  3. Will return first line containing the “svu dept” word. Search will be case insensitive.

  4. Will return all words containing the “svu dept” word. Search will be case insensitive.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The grep -i flag performs case-insensitive searching and returns all matching lines by default. Option A correctly describes both the case-insensitive behavior and that all lines are returned. Option B incorrectly states the search is case-sensitive, while C incorrectly suggests only the first match is returned.