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.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications