cd root
.bash_profile 这个是配置当前用户的环境变量

cd /etc
profile 这个是配置系统的环境变量

 

which xxx 查看命令的目录

source .bash_profile 让命令起作用

相关文章: