Re: setting up environment variables
On 9/13/05, Adam Hardy <firstname.lastname@example.org> wrote:
> Dom on 12/09/05 12:20, wrote:
> > SO I need to change system variables TMPDIR, TEMP and TMP... how
> > should I do that?
> > One source tells me to change .bash_profile from my (and every other
> > user's if I want to do this as the system default) home folder by
> > putting 'export TMPDIR=[path]' in it, BUT
> > another source tells me that /etc/profile, ~/.profile, ~/.bashrc and
> > ~/.bash_logout are standard scripts that are executed at various times
> > and ~/.bashrc is executed when bash is launched.
> > So now I'm not sure which one to change, .bashrc or .bash_profile...
> > Can somebody tell me?
> > BTW, is this the only way of setting system default variables or I
> > missed something?
> If you want to change the envvars globally, then change them in
> /etc/profile since all users' profile include that.
> I expect there are many other ways of achieving this as well, but that's
> what I'd do.
Thanks, and if I'd wish to separate tmp files for different users in
different folders (just for TMPDIR var) would ~/.bashrc settings take
precedence over the system default settings in /etc/profile or not?