ubuntu 环境变量配置

来源:互联网 发布:手机自动作曲软件 编辑:程序博客网 时间:2024/05/20 17:08

vi /etc/profile

在最后的地方
这里写图片描述

多个环境变量

这里写图片描述
然后 source /etc/profile

临时设置

export PATH=/opt/Android-studio/bin:$PATH

当前用户的全局设置

vim ~/.profile,添加行:
export PATH=/opt/android-studio/bin:$PATH
使生效
source .profile

所有用户的全局设置

vim /etc/profile
在里面加入:
export PATH=/opt/android-studio/bin:$PATH
使生效
source /etc/profile

原创粉丝点击