Shell environment · Question 3 of 12
When does bash run the file ~/.bash_logout?
1 answer is correct. Easy Created with AI
Show answer
Answer
- B When a login shell exits
Explanation
~/.bash_logout runs when a login shell ends, for example with exit or logout. It often contains clean-up commands such as clear.