I know I can add a directory to PATH variable by exporting PATH =$PATH:/new-dir/
but if my solaris gets restarted then I have to again set the path
Please how can I set the path permanently so it does no disappear after rebooting
You need to edit the /etc/profile file and add the desired directory to the already existing one's
this will permanently add that directory to the PATH