无法将Genymotion路径添加到PATH变量linux xubuntu

时间:2017-11-07 19:25:11

标签: linux ubuntu environment-variables

我跟随此doc并尝试将Genymotion路径添加到环境变量PATH,但在运行echo $ PATH后,它没有沿其他路径显示。

添加命令:

export PATH=/home/user/.Genymobile/Genymotion/

或:

export PATH=/home/user/bin:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/android-studio/bin/:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/home/user/.Genymobile/Genymotion/

echo $ PATH:

/home/user/bin:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/android-studio/bin/:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin

我已经尝试将文件夹移动到另一条路径,但我得到了同样的错误。 我该如何解决?

1 个答案:

答案 0 :(得分:2)

在〜/ .profile中添加此行以永久设置$PATH

export PATH=$PATH:/home/user/.Genymobile/Genymotion/