NCAE Mapping Hub
Overview Scoreboard Data Roles Exercised Checklists Lessons Skill Drills Practice Terminal Progress
performance medium Apply redir 2 points

Question 16. CSCD240-E1-B

Send BOTH stdout and stderr of build.sh to build.log.

Work the drill

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

Ideal answer
build.sh > build.log 2>&1
Acceptable alternatives: ["build.sh &> build.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.

build.sh 2>&1 > build.log
Misconception. Evaluation order wrong: stderr to terminal, stdout to file.
Remedy. Teach left-to-right: put 2>&1 AFTER the > filename.

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: Merge stdout+stderr to one file with 2>&1.