如何将安装容器添加到PATH环境中以执行程序?

时间:2018-07-08 11:48:13

标签: terminal path pycharm environment-variables

我下载了pycharm-community-2018.1.4.tar.gz并将其提取到:

/home/user/Installations/

我可以从以下位置运行pycharm:

/home/user/Installations/pycharm-community-2018.1.4/bin/

键入:

./pycharm.sh

在用户指南(Install-Linux-tar.txt)中,提供了有关如何将bin添加到PATH的信息

3. [OPTIONAL] Add "{installation home}/bin" to your PATH environment
variable so that you may start PyCharm from any directory.

我试图做到这一点:

PATH=$PATH:/home/user/Installations/pycharm-community-2018.1.4/bin/

或将该行添加到:

~/.bashrc
source ~/.bashrc

我希望从终端的任何位置启动pycharm!如何更改命令以能够从cmd执行pycharm并运行pycharm?

当前$ PATH:

$ echo $PATH
/bin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

0 个答案:

没有答案