1

Where exactly is the $PATH variable stored? I am changing the /etc/environment file with my desired path. Then I am doing echo $PATH and the old version is showed.

kos
  • 35,891
curious
  • 183

2 Answers2

5

Rebooting will work or you can run at a terminal

source /etc/environment
Harris
  • 2,598
  • No, source /etc/environment will apply the change only to the current shell's environment, try opening a terminal, changing /etc/environment, sourcing it, closing the terminal and reopening another terminal. Rebooting is required when changing /etc/environment. – kos Dec 09 '15 at 04:28
  • Yeah, @Terrance is right, also just logging out / logging in will do. – kos Dec 09 '15 at 04:47
2

If you are editing the /etc/environment file, all you have to do is log out of your account and log back in for the changes to take effect. It is best for your account to follow through the other link that has been posted in the comments of the original question.

Terrance
  • 41,612
  • 7
  • 124
  • 183