how to find ip address in linux?

perry

Diamond Member
Apr 7, 2000
4,018
1
0
Or, if /sbin isn't in your path, type:
/sbin/ifconfig

(That's the location on RedHat 6.2, can't see it being different on Mandrake)

Not there, try:
whereis ifconfig

That'll find it.
 

nuttervm

Golden Member
Nov 13, 1999
1,818
0
0
this is wierd, i go to the sbin directory, and can see the file, but not run it. i've tried typing ifconfig , ifconfig eth0 , ifconfig -eth0 to no avail. i looked at the man page, but it doesnt help, it still doesnt work.

i know it is working cuz i see it init as eth0 during boot, added to the fact that im posting from linux now :)
 

nuttervm

Golden Member
Nov 13, 1999
1,818
0
0
also as a ramdom question, what does a * or @ after a file's name mean in the file list? i'm guessing the @ stuff i cant use since i'm not logged in as root right?
 

rahvin

Elite Member
Oct 10, 1999
8,475
1
0
ifconfig is definately a root only file, I would be very scared if it wasn't.
 

nuttervm

Golden Member
Nov 13, 1999
1,818
0
0
score... logged in using su and it worked great :)

why would u be worried if it weren't for root? what can ifconfig do except display net status?
 

andri

Senior member
Aug 12, 2000
339
0
0
ifconfig is shorthand for InterFace CONFIGuration, or this utility handles all the real work of managing your NICs. This is one of the most important networking tools.

for example, I'd be pretty mad if anyone would do a ifconfig eth0 down on my box...

Ifconfig is everything, except showing statistics.
 

ASK THE COMMUNITY