NCAE Mapping Hub
Overview Scoreboard Data Roles Exercised Checklists Lessons Skill Drills Practice Terminal Progress
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 tasks: T0447
KU outcomes: CD-OSC-O3CO-M9-O1
KU topics: CD-OSC-T5
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.