performance
medium
Apply
redir-merge
2 points
Question 39. CSCD240-E1-C
Send BOTH stdout and stderr of make into merged.log (full example).
Work the drill
Answer on paper or in a terminal before revealing the ideal answer.
Ideal answer
make > merged.log 2>&1
Acceptable alternatives: ["make &> merged.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.
make 2>&1 > merged.log
Misconception. Wrong evaluation order.
Remedy. 2>&1 must come AFTER > file.
Authority mappings
Hover any chip for the mapping justification; click to open the authority record.
DCWF roles:
IT-451 System Administrator
DCWF tasks:
T0498
KU outcomes:
CD-BSP-O1
NCAE errors:
SSH 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.