Ubuntu – add path to environment
System-wide environment settings:
sudo nano /etc/environment
Add you path, save, run to affect changes:
1 |
. /etc/environment
Profile only environment settings:
Goto $HOME
Edit .profile
At bottom add: PATH=”$PATH:/my/new/path”
Logout & login
Sources: AskUbuntu