这两个文件都是在home的用户目录下面,属于用户的特有的环境变量,而/etc/profile则是系统的环境变量,每个用户都可以访问的环境变量 那么.bash_profile 与 .bashrc有什么不同呢?官方有句话: .bash_profile is executed for login shells, while .bashrc is executed for interactive non-login shells. 也就是说.bash_profile是登录的时候调用的,而 .bashrc是每次交互的时候就会…