CompTIA Linux+ (XK0-005) — Question 41

A Linux administrator reviews a set of log output files and needs to identify files that contain any occurrence of the word denied. All log files containing entries in uppercase or lowercase letters should be included in the list. Which of the following commands should the administrator use to accomplish this task?

Answer options

Correct answer: D

Explanation

The correct answer is D because the command uses the '-l' option to list files containing 'denied' in a case-insensitive manner. Options A, B, and C do not provide the correct parameters for listing files based on case-insensitive matches and are therefore not suitable for this task.