NCAE Mapping Hub
Overview Scoreboard Data Roles Exercised Checklists Lessons Skill Drills Practice Terminal Progress
multiple_choice easy Remember redir 2 points

Question 5. CSCD240-E1-C

Which redirection sends only stderr of a command to a file err.log?

Work the drill

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

Ideal answer
B: 2> err.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.

A: > err.log
Misconception. Redirects stdout.
Remedy. fd 1 = stdout; fd 2 = stderr.
C: &> err.log
Misconception. Redirects BOTH.
Remedy. &> is merge; 2> is stderr-only.
D: < err.log
Misconception. < is stdin.
Remedy. Input ≠ error output.

Authority mappings

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

DCWF tasks: T0498
KU outcomes: CD-BSP-O1
KU topics: CD-BSP-T8i
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-L07. I/O redirection, aliases, source, .bashrc, env

Lab questions

  • CSCD240-S26-LAB4: Redirect ls /nonexistent errors to err.log using 2>.

CTF challenges

  • 03 I/O & Pipelines: Catch Only Errors