Click to See Complete Forum and Search --> : Making PATH keep new values...


jdvilla
07-31-2003, 02:03 PM
I am trying to add directories to my $PATH

for example

mysql
java
tomcat
$JAVA_HOME
$CATALINE_HOME

I do this

export PATH=$PATH:/usr/local/mysql/bin
export PATH=$PATH:/usr/java/j2sdk/bin
export PATH=$PATH:/etc/tomcat/bin
etc....

this works great, but once I log off, I have to redo everything. I know there must me permanent way. I've searched and all I've some up with is what I'm doing above.

x_Ray
07-31-2003, 02:05 PM
Put the commands in your ~/.bashrc file.