I need to know the IP address of the UNIX machine. I can login to that with ssh but dont know the IP address.
Can anyone please know any command to get the ip address of the Unix machine i logged to ?
feedback
|
This question came from our site for professional and enthusiast programmers.
|
try this code to see the IP address of unix machine
| |||
|
feedback
|
|
You can use ifconfig to get the IP address of any of the interfaces on the system (note that there may well be more than one interface and more than one IP address). Start with:
| |||||
feedback
|
|
An alternative to
The interface which is not loopback (lo) is the one you want: | |||
|
feedback
|
|
use | |||
|
feedback
|