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?
- Afind . -type f -print | xrags grep -ln denied
- Bfind . -type f -print | xrags grep -nv denied
- Cfind . -type f -print | xrags grep -wL denied
- Dfind . -type f -print | xrags grep -li denied (correct answer)
Reveal answer & explanationHide answer
The correct answer is D. Option D: find . -type f -print | xrags grep -li denied
