Thread: $PATH Help
View Single Post
  #1 (permalink)  
Old 14-Mar-2005, 16:10
harryc
Guest
 
Posts: n/a
Default

Ok, so this is definately a newbie question, but I can't put my finger on the answer after many hours of research. My $PATH looks like the following;

Code:
harryc@linux:~> echo $PATH
/home/harryc/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin
Lets say that I want to change a part of it to point to another location for JAVA. How do I do that, and how do I make it permanent? I know I can issue this command to add to $PATH. As follows;

Code:
export PATH=/usr/share/j2re1.4.2/bin:$PATH
...and I believe I can make it permanent by adding it to /etc/profile.local. But how do I delete
Code:
/usr/lib/jvm/jre/bin