environmental varianbles

Pete Nesbitt pete at linux1.ca
Mon Feb 23 21:45:04 UTC 2004


On February 23, 2004 12:35 am, Kalin Mintchev wrote:
> hi all..
>
> probablyt a stupid question:
>
> how do i make environmental variables to stick?
> if i do:
> export JAVA_HOME="/path/to/jdk"
>
> and then:
>
> # env
>
> i can see the java home defined. but if i log out and then log in again.
> $JAVA_HOME desappeared from the env list. the same with PATH and others..
> on rh8.0...
>
> thanks...


For global environments use /etc/profile, for user specific (in bash) use 
~/.bash_profile
-- 
Pete Nesbitt, rhce





More information about the redhat-list mailing list