Search My Blog

Tuesday, May 10, 2011

Persisting Environment variables in Linux

I was tired of changing the JAVA_HOME path everyday, before starting work at office. So I dug in a bit and found that you could make environment variables persistent by editing the file /etc/environment. If you locate the file and it opens in read-only mode, try 'sudo gedit /etc/environment' at the command prompt.

1 comment: