浅析linux 下的/etc/profile、/etc/bashrc、~/.bash_profile、~/.bashrc 文件
转自:http://huhao1989.iteye.com/blog/1586020/etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行. 并从/etc/profile.d目录的配置文件中搜集shell的设置. /etc/bashrc:为每一个运行bashshell的用户执行此文件.当bashshell被打开时,该文件被读取. ~/.bash_profil