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.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux