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

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.