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

Question 17. CSCD240-E1-B

sort auth.log > auth.log — what happens, one-sentence why?

Work the drill

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

Ideal answer
auth.log becomes empty; shell truncates the redirect target BEFORE sort reads it.

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. Students miss the truncation-first rule.
Remedy. Use sort -o for in-place; demo the clobber live.

Authority mappings

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

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

Course-artifact links

Lectures

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

CTF challenges

  • 03 I/O & Pipelines: where data