How to find the IP address on a UNIX machine?
On a Unix machine ifconfig command shows the IP address of the local machine. From a non root account we need to give the full path of the ifconfig executable(
/sbin/ifconfig
). In a root account, just
ifconfig
will suffice.