source /etc/profile 作用于全局(所有用户) source ~/.bash_profile 用户PATH source ~/.bashrc 用户alias
为避免破坏/etc/profile文件,采取下列措施 vim /etc/profile.d/.sh source /etc/profile 执行/etc/profile.d目录下所有文件