linux添加自己的环境变量

在linux中添加环境变量有多种:

1设置临时环境变量

export PATH=$PATH:/usr/sbin/

2修改profile文件,增加环境变量

vim ./etc/profile

增加你要添加的环境变量如下图:



然后 source /etc/profile就可以了


猜你喜欢

转载自blog.csdn.net/weixin_39712497/article/details/80263128
今日推荐