| Zolved community solution |
|
How to set environment variables on Ubuntu.
Here we will learn how to go setting up environment variables on Ubuntu.
Just follow these simple steps to set systemwide environment variables on Ubuntu.
- Go to Applications > Accessories > Terminal to open the terminal window.

-
Enter the following command at the prompt to take the back up of /etc/profile file.
sudo cp -p /etc/profile /etc/profile_backup

-
To edit the /etc/profile file, enter the following command at the terminal
gksudo gedit /etc/profile

-
Add the environment variable as shown at the end of file.
Format for this command is:
export ENV_VAR_NAME=VALUE
export VINAYA_HOME=/home/iptouch/vinaya
In the example above, VINAYA_HOME is the name of the environment variable and /home/iptouch/vinaya is its value.

-
Save and close the file.
-
To test it, restart the machine and type the commands as shown.
cd /home
cd $VINAYA_HOME ( Remember that this is the ENV_VAR_NAME)
pwd

|
| Type: | ArticleContent |
| Updated at: | 20 Jun 00:15 |
| Updated by: | Vinaya |
| Tags: | environment environment variables how set how to set set environment ubuntu variables ubuntu zolved how |
| Keywords: | environment, set, how to, Ubuntu, Zolved How, How set, set environment, environment variables, variables Ubuntu, ubuntu environment variables , set ubuntu environment variables , how to set ubuntu environment variables , where to set ubuntu environment variables , environment variables in ubuntu , change environment variables |
| Brand: |
Topic > How To Article Source > Authored in Zolved Brand > Ubuntu |
rss feeds | browse | terms of use | privacy policy | faq | site feedback | about ZOLVED™
copyright © 2008, IPTouch, Inc.
del.icio.us
stumble









