Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change $PATH & $CLASSPATH

Status
Not open for further replies.

haux

Programmer
Apr 11, 2001
79
DZ
i have RedHat 6.2 + kernel 2.2.14-5.0 + GNU bash, version 1.14.7(1)

i want to add the path ( i am root): '/home/yyy' to my $PATH. i just add it to
my
/etc/profile file like this
PATH="$PATH:/usr/X11R6/bin:/usr/local/jdk1.2.2/bin:./:/home/yyy"
OK but
1-How to make my linux execute that witout rebooting?
2-Can i make this by terminal without editing /etc/profile ?
i have tried setenv PATH /etc/yyy:$PATH
but i get the message "bash: setenv:command not found"

Another Question
3-How to add /home/yyy to my $CLASSPATH in /etc/profile?, i havn't find
$CLASSPATH !!!
4-How to make my linux execute that witout rebooting?


Thanks for all
NB: I must do that to install and use commapi from SUN to use ttyS0 JAVA
 
Didn't this already get answered??? Please don't cross post in the foroums, it's very confusing an wastes everyones time.
Disclaimer:
Beware: Studies have shown that research causes cancer in lab rats.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top