lunes, 27 de julio de 2009

Get IP address of a host

If you need to get the IP address of a host, but you don't want to parse the output of ifconfig, you can use hostname:

$ hostname -i
192.168.1.160
$ _

No hay comentarios:

Publicar un comentario