1. 当你的home下面有.bash_profile或者.bash_login的时候,会忽略调.profile.
2. source ~/.bash_profile 保存使命令生效
3.主要有一下几种方式 /etc/profile ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc ~/.bash_logout /etc/profile
4.etc下的配置是针对系统,~下的主要是针对用户
1. 当你的home下面有.bash_profile或者.bash_login的时候,会忽略调.profile.
2. source ~/.bash_profile 保存使命令生效
3.主要有一下几种方式 /etc/profile ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc ~/.bash_logout /etc/profile
4.etc下的配置是针对系统,~下的主要是针对用户