performance
medium
Apply
grep
2 points
Question 34. CSCD240-E1-A
Print lines of access.log containing 403 with their line numbers.
Work the drill
Answer on paper or in a terminal before revealing the ideal answer.
Ideal answer
grep -n 403 access.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 403 access.log
Misconception. Missing -n (no line numbers).
Remedy. Flag chart: -n for line numbers.
grep -l 403 access.log
Misconception. -l shows only filenames, not content.
Remedy. -l vs -n: filename-only vs line-numbers.
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 topics:
CD-OSC-T5
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
Lab questions
- CSCD240-S26-LAB5: grep -i, grep -n, grep -v, grep -c, grep -r on a log file.