Shell environment · Question 1 of 12

Which system-wide file does bash read first as a login shell?

1 answer is correct. Easy Created with AI

Show answer

Answer

  • B /etc/profile

Explanation

A login shell first reads /etc/profile, then the first existing file of ~/.bash_profile, ~/.bash_login and ~/.profile.

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