[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Command to see ip address on etch stable



On 2007-08-23 17:36:55 -0400, Orestes leal wrote:
> ifconfig -a | grep 'inet' | awk '{ print $2 }'
> 
> Where the first result comes from the first interface, and so on
> the last line it's your loopback address, bye.

No, not necessarily: after lo, you can have sit0 (I don't know if it
is used in practice) and/or usb0.

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)



Reply to: