Shell environment · Question 4 of 12
A user has changed ~/.bashrc. How does the change take effect immediately in the running shell?
1 answer is correct. Easy Created with AI
Show answer
Answer
- B source ~/.bashrc
Explanation
source reads the file into the current shell. bash ~/.bashrc runs it in a new shell instead, whose settings are lost afterwards.