Question 1
Topic: Linux Fundamentals
Skill tested: Uses shell pipelines and text-search tools to locate matching records in a log file.
A support engineer must identify authentication failures recorded in `/var/log/auth.log` during an incident. The file is large, and the engineer needs a concise list of lines containing the exact text `Failed password` without modifying the source file. The system provides standard GNU/Linux command-line utilities. Which command best meets the requirement?
`grep` searches the file for lines matching the supplied text and writes matching lines to standard output, leaving the log unchanged. `sed -i` edits the file in place and would remove the matching text rather than simply report it. `tail` displays only the last specified lines, whether or not they contain failures. `chmod` changes permissions and does not search file contents.