nerdexam
Cisco

700-280 · Question #16

Which statement about the grep command is true?

The correct answer is D. It performs a case-sensitive search. grep performs case-sensitive search by default, meaning grep "Error" file.txt will not match lines containing "error" or "ERROR" - this is why D is correct. Option A is false because grep is one of the most fundamental Unix/Linux CLI tools, widely available across virtually all…

Troubleshoot Cisco Email Security Solutions

Question

Which statement about the grep command is true?

Options

  • AThe grep command is not available in the CLI.
  • BIts behavior is configurable with the scanconfig CLI command
  • CIt performs a case-insensitive search.
  • DIt performs a case-sensitive search.

How the community answered

(47 responses)
  • B
    2% (1)
  • C
    4% (2)
  • D
    94% (44)

Explanation

grep performs case-sensitive search by default, meaning grep "Error" file.txt will not match lines containing "error" or "ERROR" - this is why D is correct. Option A is false because grep is one of the most fundamental Unix/Linux CLI tools, widely available across virtually all shells. Option B is fabricated - there is no scanconfig CLI command associated with grep; its behavior is controlled via flags like -i, -r, and -E. Option C is the classic trap: while grep -i enables case-insensitive search, that flag must be explicitly provided - the default behavior is case-sensitive.

Memory tip: Think of grep as a strict librarian who reads exactly what you write - you must say -i to get her to stop caring about capitalization.

Topics

#grep#CLI commands#Text search#Case sensitivity

Community Discussion

No community discussion yet for this question.

Full 700-280 Practice