multiple_choice
easy
Remember
shell-config
2 points
Question 14. CSCD240-E1-C
Reload ~/.bashrc in current shell without opening new terminal?
Work the drill
Answer on paper or in a terminal before revealing the ideal answer.
Ideal answer
A: source ~/.bashrc (or . ~/.bashrc)
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.
B: reload ~/.bashrc
Misconception. No such command.
Remedy. source is the canonical name.
C: bash ~/.bashrc
Misconception. Spawns subshell, does not affect current.
Remedy. Subshell exits and changes vanish.
D: exec ~/.bashrc
Misconception. Replaces shell; usually not what you want for a config file.
Remedy. exec replaces the process image.
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
CTF challenges
- 04 Environment & Patterns: Reload Without Restarting