performance
medium
Apply
grep
2 points
Question 25. CSCD240-E1-C
Print every line of auth.log containing "Failed password" (case-insensitive) with line numbers.
Work the drill
Answer on paper or in a terminal before revealing the ideal answer.
Ideal answer
grep -in 'Failed password' auth.log
Misconception bank
Each row below is a plausible wrong answer, the thinking that produces it, and the remedy that corrects the misconception. These are the foundation of the multiple-choice framing and the targeted feedback a student receives after answering.
grep 'Failed password' auth.log
Misconception. Missing -i and -n.
Remedy. Flag pair.
Authority mappings
Hover any chip for the mapping justification; click to open the authority record.
DCWF roles:
EN-211 Forensics Analyst
DCWF tasks:
T0447
KU outcomes:
CO-M9-O1
O*NET tasks:
SOC 15-1212.00: task 6SOC 15-1212.00: task 7SOC 15-1244.00: task 1SOC 15-1244.00: task 2
NCAE errors:
WWW Content / failure: Failed to connect to hostWWW Content / timeout: TimeoutWWW Content / failure: Website cannot be reachedSSH Login / failure: Failed to connect to host: IPSSH Login / partial: The following users failed t.SSH Login / partial: The following users failed t.
Course-artifact links
Lectures
- CSCD240-S26-L08. Pipes, filters, grep, sort, uniq, wc, tar