• Post Reply Bookmark Topic Watch Topic
  • New Topic

set the path  RSS feed

 
Steve Deadsea
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are two places that you can put it. If you want it to be in the path for all users of your system put it in /etc/profile
If you want it to be available to just you, put it in ~/.bashrc
Adding it to your path is probably best with this line which only adds it to the path if it is not already in the path. It will work in either of the two files:
if ! echo $PATH | /bin/grep -q "/usr/java/j2sdk1.4.0/bin" ; then
PATH="$PATH:/usr/java/j2sdk1.4.0/bin"
fi
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a question in here somewhere?
 
Andrew Parker
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that is related to my question. Thanks for your kind help.
May I ask you is it "Shell script"?
Andrew
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!