版权声明:本文为博主yellowcong原创文章,未经博主允许不得转载。 https://blog.csdn.net/yelllowcong/article/details/81205746
在系统中,有限使用当前用户的profile,然后再使用/etc/profile的配置,有时候为了环境变量当前用户有效,就可以直接配置到
~/.bash_profile
,如果想所有的用户都生效,就配置到/etc/profile
#全局的
/etc/profile
#当前
~/.bash_profile