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

Question 15. CSCD240-E1-A

Add /opt/tools/bin to PATH for the current shell.

Work the drill

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

Ideal answer
export PATH=$PATH:/opt/tools/bin
Acceptable alternatives: ["export PATH=\"$PATH:/opt/tools/bin\"", "PATH=$PATH:/opt/tools/bin; export PATH"]

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.

export PATH=/opt/tools/bin
Misconception. Overwrites PATH entirely — breaks every other command in the shell.
Remedy. Near-miss but catastrophic in practice — dedicate class time to PATH corruption recovery.
PATH=/opt/tools/bin
Misconception. Same as above and not exported so subshells don't see it.
Remedy. Teach export semantics vs shell-local assignment.

Authority mappings

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

DCWF tasks: T0418
KU outcomes: CD-BSP-O1CO-M5-O2
KU topics: CD-BSP-T8a
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: export PATH=$PATH:/opt/mybin. Verify the change.

CTF challenges

  • 04 Environment & Patterns: The Divider