Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)

A.

~/.bashconf

B.

~/.bashrc

C.

~/.bashdefaults

D.

~/.bash_etc

E.

~/.bash_profile

题解

当用户登录(输入帐号密码)shell 的时候会运行家目录的「.bash_profile」。而当用户打开 bash shell(不包含 sh)的时候会运行家目录的「.bashrc」。