可以选择配置在/root/.bash_profile或者/etc/profile中
.bash_profile只针对root生效,也可以选择配在其他用户的.bash_profile下,
/etc/profile是全局配置文件,开机时会加载profile文件,如果profile中配置出错,将无法正常开机
/root/.bash_profile配置:
可以选择配置在/root/.bash_profile或者/etc/profile中
.bash_profile只针对root生效,也可以选择配在其他用户的.bash_profile下,
/etc/profile是全局配置文件,开机时会加载profile文件,如果profile中配置出错,将无法正常开机
/root/.bash_profile配置: