NCAE Mapping Hub
Overview Scoreboard Data Roles Exercised Checklists Lessons Skill Drills Practice Terminal Progress
scenario hard Analyze evaluation-order 2 points

Question 40. CSCD240-E1-C

sort /var/log/audit.log > /var/log/audit.log — state and why.

Work the drill

Answer on paper or in a terminal before revealing the ideal answer.

Ideal answer
audit.log becomes empty. Shell truncates target BEFORE sort reads source.

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.

File is sorted in place
Misconception. Missing truncate-first rule.
Remedy. Use sort -o for in-place.

Authority mappings

Hover any chip for the mapping justification; click to open the authority record.

DCWF tasks: T0498
KU outcomes: CD-CSP-O4

Course-artifact links

Lectures

  • CSCD240-S26-L07. I/O redirection, aliases, source, .bashrc, env

CTF challenges

  • 03 I/O & Pipelines: where data