Custom environment variables are stored in /etc/environment file.
sudo gedit /etc/environment
If you open this file you will see the PATH variable's value. If you would like to set a new one just move to new line and set your variable in {variable_name}="{variable_value}" format. Such as JAVA_HOME="/usr/lib/jvm/java-6-sun/bin"
DONT FORGET TO OPEN FILE AS SUPER USER and restart your computer after you saved the changes.
To see the list of environment variables:
bash$ export
3 comments:
Thanks, it helped me a lot
Many thanks for this manual!
thanks a lot it's really great...
i googling for this for one day
Post a Comment