Archive for the ‘CentOS’ Category

Setting Global Environment Variables in CentOS

Thursday, April 16th, 2009

The easiest way to set an environment variable in CentOS is to use export as in $> export JAVA_HOME=/usr/java/jdk.1.5.0_12 $> export PATH=$PATH:$JAVA_HOME However, variables set in such a manner are transient i.e. they will disappear the moment you exit the shell. Obviously this is not helpful when setting environment variables that need to ...

Entries (RSS) and Comments (RSS) .