N/APosted on - 07/22/2017
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.
Use Of Export Environment Variable Listed
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.