让配置文件立即生效:source 配置文件 或 . 配置文件
/etc/profile 例:定义了HISTSIZE=1000
/etc/profile.d/*.sh
/etc/bashrc
~/.bash_profile 例:定义了PATH=$PATH:$HOME/bin
~/.bashrc 例:定义了当前用户的命令别名
~/.bash_history 注释:历史命令
环境变量配置文件
原文:http://www.cnblogs.com/xiongjiawei/p/7327932.html