LPI Exam Questions

which of the following sentences is true?

When bash is invoked as an interactive login shell, which of the following sentences is true?

A.
It first reads and executes commands in /etc/bashrc and then does the same for
/etc/profile.

B.
It ignores /etc/profile and only reads and executes commands in ~/.bashrc.

C.
It first reads and executes commands in /etc/profile and then does the same for
~/.bash_profile, ~/. bash_login and ~/.profile.

D.
It first reads and executes commands in /etc/profile and then does same for
~/.bash_profile and ~/.bashrc.

E.
It reads and executes commands in ~/.bashrc only if /etc/profile or another initialisation

script calls it.