Use Of Export Environment Variable Listed

Asked By 50 points N/A Posted on -
qa-featured

I want to set environment variable in Ubuntu 11.04 and I want to know the steps which will help me in doing that using export environment variable command. Guys please help me out. It would be really grateful if you do.

SHARE
Answered By 50 points N/A #301450

Use Of Export Environment Variable Listed

qa-featured

In Ubuntu export command is used to set environment variable once and it is used in the prompt and not in the Shell script.

To set the environment variable everytime, you need to use the export command in .bashrc file or whatever the appropriate file is for your shell.

To set the environment variable from a script you need to set it up there and then export the source of the script.

Login/Register to Answer

Related Questions