Re: setting up environment variables

From: Adam Hardy (adam.ant_at_cyberspaceroad.com)
Date: 09/13/05

  • Next message: sinohr sinohr: "Q=FA=B5=C4=BC=F2=C0=FA=D2=D1=CA=D5=B5=BD=A3=AC=D5=FD?="
    Date: Tue, 13 Sep 2005 13:31:18 +0100
    To: debian-user@lists.debian.org
    
    

    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.

    Adam

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: sinohr sinohr: "Q=FA=B5=C4=BC=F2=C0=FA=D2=D1=CA=D5=B5=BD=A3=AC=D5=FD?="