performance
medium
Apply
redir
2 points
Question 15. CSCD240-E1-B
Send only stderr of "scan /etc/shadow" to errors.log; leave stdout on terminal.
Work the drill
Answer on paper or in a terminal before revealing the ideal answer.
Ideal answer
scan /etc/shadow 2> errors.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.
scan /etc/shadow > errors.log
Misconception. Redirects stdout.
Remedy. fd numbers matter: 1=stdout, 2=stderr.
scan /etc/shadow &> errors.log
Misconception. Redirects BOTH, not just stderr.
Remedy. &> = both; 2> = stderr only.
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 topics:
CD-BSP-T8i
O*NET tasks:
SOC 15-1212.00: task 6SOC 15-1212.00: task 7SOC 15-1244.00: task 1SOC 15-1244.00: task 2
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
- 03 I/O & Pipelines: Stream Number 2