I used set PATH$
but that worked until I closed Terminal , now qouestion is how to put this in PATH=/usr/bin:/usr/sbin:/usr/X11/bin:/usr/sfw/bin:/usr/openwin/bin:/usr/dt/bin:/usr/perl5/5.6.1/bin:/usr/perl5/5.8.4/bin:/usr/java/bin:/usr/apache2/bin:/opt/SUNWspro/bin:/opt/coolstack/bin:/opt/scfw/bin:/opt/rogo/bin:/opt/rogo/sbin:/usr/xpg4/bin:/usr/ccs/bin:/opt/oracle/product/10.2.0.1.0/bin
permantly
Hi.
Try setting it in your $HOME/.profile.
It's safer to say
PATH=$PATH:<whatever you want to add>
or
PATH=<whatever you want to add>:$PATH
Then whenever you log in, it gets set. (you need to login again or execute ". ~/.profile" to make it effective)
(incidentally, this is not a Solaris question, but a general one)
And if you want to set it by default for all accounts, the best way is to uncomment and set the PATH variable in /etc/default/login.
of course (if I thought our friend was root, i'd have mentioned it!)
Ok I done it , I am new in Solaris world
This is not a Solaris thing, this is general Unix.
Anways, good things start working for you.
Regards.
/etc/default/login is mostly Solaris specific.
I changed it there