nerdexam
CompTIA

LX0-101 · Question #2

Which of the following commands will find the string foo in the file filel M, regardless of foo being in upper or lower case letters?

The correct answer is A. catfilel.txt| grep-ifoo. See the full explanation below for the reasoning.

Question

Which of the following commands will find the string foo in the file filel M, regardless of foo being in upper or lower case letters?

Options

  • Acatfilel.txt| grep-ifoo
  • Bcat file 1.txt > grep-n foo
  • Cgrep-i foo | file 1 .txt
  • Dgrep-nfilel.txt<foo
  • Egrep-nfoofile1.txt

How the community answered

(32 responses)
  • A
    75% (24)
  • B
    3% (1)
  • C
    3% (1)
  • D
    13% (4)
  • E
    6% (2)

Community Discussion

No community discussion yet for this question.

Full LX0-101 Practice