Re: Command to see ip address on etch stable
On Thu, 23 Aug 2007 17:31:03 -0400
Orestes leal <orestesleal13022@cha.jovenclub.cu> wrote:
>
> > On Thu, Aug 23, 2007 at 04:02:46PM -0500, Michael Kerwin wrote:
> > > Is there a command on debian etch stable that you can run to see what ip address you are?
> >
>
>
> Try this
>
> ifconfig eth0 | grep inet | awk '{ print $2 }'
>
> Where eth0 it's your first network card, and so on.
> Good Luck.
>
> -olr.
>
Or, this
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.
-olr.
Reply to: