[X-Unix] Re: My ip address

Peter Dyballa Peter_Dyballa at Web.DE
Thu Feb 17 02:02:23 PST 2005


Am 17.02.2005 um 01:32 schrieb 
x-unix-request at listserver.themacintoshguy.com:

> Anyone know a slick one-liner in xterm to find out what ip address I'm
> assigned (i.e. Without having to go to System Prefrences)?

ifconfig -a | grep -w inet | grep -v ' 127' | awk '{print $2}'

(Similiarly for IPv6)
--
Greetings

   Pete



More information about the X-Unix mailing list