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
  • 41,268
curious
  • 183

2 Answers2

5

Rebooting will work or you can run at a terminal

source /etc/environment
Harris
  • 2,588
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
  • 43,712