Heres some info I pulled up using a common search engine looks correct.
***
Each time bash starts up (ie. when you log into a text terminal, when you launch an xterm), two bash configuration files are automatically read by bash. One is .bashrc, and the other is .bash_profile. Both are located in the user's home directory, so the files can be configured differently for each user.
.bash_profile contains this:
code:
------------------------------------------------------------------------------------
PATH=/usr/java/jdk1.3.1_02/jre/lib/rt.jar:$PATH:$HOME/bin
export PATH
------------------------------------------------------------------------------------
This will set your path to /usr/java/jdk1.3.1_02/jre/lib/rt.jar:$PATH:$HOME/bin
Therefore, everytime bash starts up, your path will be set to the above. In order to change the path, just modify the line in .bash_profile. Here's what you would change it to in order to add /opt/gnome/bin to the path:
code:
------------------------------------------------------------------------------------
PATH=/usr/java/jdk1.3.1_02/jre/lib/rt.jar:$PATH:$HOME/bin:/opt/gnome/bin
export PATH
------------------------------------------------------------------------------------
The $PATH variable references the current path, and the $HOME variable references the user's home directory. Also, the different directories in your path must be separated by colons (
.