LPIC-1 Exam 102 v5 (Linux Administrator) — Question 117
Which of the following files is not read directly by a Bash login shell?
Answer options
- A. ~/.bashrc
- B. ~/.bash_profile
- C. ~/.bash_login
- D. ~/.profile
- E. /etc/profile
Correct answer: A
Explanation
The correct answer is A, as the ~/.bashrc file is not read by a Bash login shell; instead, it is sourced by non-login shells. The other files, such as ~/.bash_profile, ~/.bash_login, ~/.profile, and /etc/profile, are specifically used by login shells to configure the user's environment.