Solaris / OpenSolarisThis forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have solaris 10 u9 installed, I as using default bash shell. I have tried to set a new PATH value by the following command
PATH=$PATH:/whtever/I/need
but I concede the variable is not persist in boot time even in closing a terminal.
So I enforced to ask u guys, how can I set environmental variable in Solaris which does not made u to do it again and again!!!
THX all of u , which will show ur faces for a help!!!
Is there a way to done it on command line? there is and to specify exactly wht is the command? I have tried to export using "export" and nothing is changed. And if someone know at minimum the files that are affected is encouraged
I am on root account and, there is no a file ~/.profile under /(root). and does I have to create it? if I have to, I have fears on setting environments perfectly. so wht should I do next?
If it doesn't exist, sure you need to create it.
If you fear to break something, open another terminal as root, create the .profile, source it and see if it works as expected. If something goes wrong and you can't unset the PATH, go to the previous terminal and delete .profile (or comment out the export statement).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.