Try typing
ifconfig, then enter.
If it doesn't find that command, you'll have to specify the whole path. For example, you might have to enter "/sbin/ifconfig".
You should get something similar to the following:
Quote:
eth0 Link encap:Ethernet HWaddr 00:60:97:C7:9F:72
inet addr:10.2.9.122 Bcast:10.2.255.255 Mask:255.255.0.0
UP BROADCAST NOTRAILERS RUNNING MTU:1500 Metric:1
RX packets:4223201 errors:0 dropped:0 overruns:0 frame:0
TX packets:49783 errors:0 dropped:0 overruns:0 carrier:1
collisions:355 txqueuelen:100
Interrupt:9 Base address:0xfe80
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:5 errors:0 dropped:0 overruns:0 frame:0
TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
You'll notice that there are two entries - one for each interface. The first one is eth0, my primary (and only) ethernet interface. In that block, a field named "inet addr" shows the ip address, in my case, 10.2.9.122.
The second block is lo, the loopback interface. It doesn't physically exist, but nearly every system should have one. It's address will always be 127.0.0.1.
Note that there may be more than one "real" interface. A single machine can technically have 255 (i think) IP addresses assigned to it.
By the way, your interface names may vary. This one is from a Linux box connected via ethernet.