Setting environment variables permanently.

Amedee Van Gasse (ub) amedee-ubuntu at amedee.be
Wed Mar 24 13:59:23 UTC 2010


On Wed, March 24, 2010 05:10, Ray Parrish wrote:
> Hello,
>
> I am a little confused on the use of environment variables in Ubuntu. In
> windows I would simply set the variables value in the autoexec.bat file,
> and it would be available for use. I have been reading the man pages,
> and info pages for export, and env, and the following session has
> resulted.

The equivalent of autoexec.bat with respect to environment variables is
each user's ~/.bashrc. The main difference is that this is per-user. If
you want to set global variables, put them in /etc/bash.bashrc. But try to
avoid that as much as you can.





More information about the ubuntu-users mailing list