Which two files in a user’s home directory are used to customize the bash environment?

Which two files in a user’s home directory are used to customize the bash environment?

Which two files in a user’s home directory are used to customize the bash environment?

A.
bash and .bashrc

B.
bashrc and bash_conf

C.
bashrc and bashprofile

D.
.bashrc and .bash_profile

E.
bash.conf and .bash_profile

Explanation:
From the man pages:
When bash is invoked as an interactive login shell, it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable.

When an interactive shell that is not a login shell is started, bash reads and executes commands from /etc/bash.bashrc and ~/.bashrc.



Leave a Reply 0

Your email address will not be published. Required fields are marked *