Unix: Getting Export PATH to “Stick”

前端 未结 6 1613
长发绾君心
长发绾君心 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 13:56

    You need to find your profile file and put that line in there. Suppose you use bash, the profile files are .bashrc and .bash_profile, found in ~. These files will vary depending on which shell you use.

提交回复
热议问题