Re: env vars.. /etc/profile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday, Jul 28th 2006 at 17:54 -0700, quoth bruce:

=>hi..
=>
=>i've made a change to the "/etc/profile" file. as i understand it, the
=>profile file is run for every user who logs in...
=>
=>how can i verify/see a given env var that i set in the profile..
=>
=>i did:
=>  foo ='abc'
=>export foo
=>
=>thanks

Add a file in /etc/profile.d and call it localvars.sh

In it, create a line that says:
export foo=abc
Note that there are no spaces around the equal. Saying set foo = bar is a 
legal bash statement that will set $1 $2 and $3 equal to foo, = and bar, 
which is not what you want.

I AM ASSUMING that you are logging to a terminal and not running 
xdm/gdm/kdm. The game is totally different in that case.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux