env vars.. /etc/profile
Steven W. Orr
steveo at syslang.net
Sat Jul 29 14:40:18 UTC 2006
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.
More information about the fedora-list
mailing list