adding environment variable paths in linux

2014-09-06

adding environment variable paths in linux
ubuntu


example:
export PATH=$
PATH
:/home/azim58/meme/bin
^Actually this fix only seems to work in individual terminals and doesn't seem to work system wide. . .

maybe

I can't believe nobody mentioned /etc/environment file. It's sole purpose is to store Environment Variables. Originally the $PATH variable is defined here. This is a paste from my /etc/environment file:


cd /etc
sudo nano environment
//then add the path you want. Then a restart is required. I have tried this, and it works.