linux中/etc/profile 和 ~/.bash_profile 的区别

在 linux中设置环境变量一般使用bash_profile进行配置

其中/etc/bash_profile 表示系统整体设置 ,生效后系统内所有用户可用
而 ~/.bash_profile 只表示当前用户的个人设置,生效后只该用户可用。

猜你喜欢

转载自www.cnblogs.com/ultimateWorld/p/9028303.html