系统和用户的环境变量配置文件

 source /etc/profile  作用于全局(所有用户)

 source ~/.bash_profile 用户PATH  

 source ~/.bashrc 用户alias

 

 

 

 

 

为避免破坏/etc/profile文件,采取下列措施

vim /etc/profile.d/.sh  

source  /etc/profile  执行/etc/profile.d目录下所有文件

 

posted @ 2015-08-24 21:34  沐风先生  阅读(343)  评论(0编辑  收藏  举报