Log in
updated 11:29 AM UTC, May 4, 2016

How to set Ubuntu Environment variables without logging out

Its very easy to set environment variable in Ubuntu.

Just edit the file /etc/environment and add your env variable.

Once done save and close it. Its not done yet .

Just source the file /etc/environment to make it work immediately without needing logout and relogin.
 Type in command:

source /etc/environment

That's it, you can now test the environment variable by typing in command:

echo $YOUR_VARIABLE

Powered by Bullraider.com
Follow Us on Twitter
Find Us on Facebook
Follow Us on Google
Follow Us on Pinterest