Thành Nguyễn
New member
How do I permanently set an environment variable in Linux?
Answer
To permanently add a new environment variable in Ubuntu (tested only in 14.04), use the following steps:
Answer
To permanently add a new environment variable in Ubuntu (tested only in 14.04), use the following steps:
- Open a terminal (by pressing Ctrl Alt T )
- sudo -H gedit /etc/environment.
- Type your password.
- Edit the text file just opened:
- Save it.
- Once saved, logout and login again.
- Your required changes are made.