Ubuntu16.04 配置环境变量的三种方法

临时设置

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

    原文作者:Bleachswh
    原文地址: https://blog.csdn.net/Bleachswh/article/details/51334661
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞