Unix: Getting Export PATH to “Stick”

前端 未结 6 1616
长发绾君心
长发绾君心 2021-02-09 13:19

When setting the export path in Unix, example:

export PATH=$PATH: $EC2_HOME/bin

If I quit terminal and open it back up to continue working, I h

6条回答
  •  不知归路
    2021-02-09 14:03

    You have to put those commands into one of the "autostart" files of your shell.

    For bash this would be .bashrc in your homedirectory (create it if necessary)

提交回复
热议问题