010-160 Exam QuestionsBrowse all questions from this exam

010-160 Exam - Question 73


Which of the following commands finds all lines in the file operating-systems.txt which contain the term linux, regardless of the case?

Show Answer
Correct Answer: C

The correct command to find all lines in the file operating-systems.txt that contain the term linux, regardless of case, is grep -i linux operating-systems.txt. The -i option in grep stands for 'ignore case', allowing it to match 'linux', 'Linux', 'LINUX', etc.

Discussion

5 comments
Sign in to comment
Ezra3579Option: C
Nov 3, 2023

The -i switch in the grep command is used to perform a case-insensitive search. When you use -i with grep, it tells grep to ignore the distinction between uppercase and lowercase letters while searching for a pattern in the input text.

franck_yao
Sep 28, 2020

Thanks

kotikbasOption: C
Jun 14, 2021

# grep -i linux file.txt Linux LINux linux

pinoypinguOption: C
Jun 14, 2021

- i ignore the case sensitivity.

beazzlebubOption: C
Jul 27, 2021

C is correct