In Solaris , What entry should I add in my .profile file in home directory so that every time I don't have to give
Sudo's full path like
/usr/local/bin/sudo as well as /usr/sbin/ping
and it will be Great help if you could tell me how to know what should be added.
If we are talking about Solaris 10 then it hasn't sudo command. If we are talking about Solaris 11 then RBAC security is on place and sudo command must be in default PATH.
If you installed sudo on Solaris 10 using csw or Solaris 10 companion CD then you must look in /opt/something