PDA

View Full Version : ifconfig problem


ATIR350
2005-05-05, 06:49 AM CDT
Sorry for asking such a stupid question

How do I check my ip under FC3? I've heard that I can check that by typing ifconfig in terminal, but it says command not found. Is there something that I have to install before using it?

AndyGreen
2005-05-05, 07:06 AM CDT
ifconfig lives in /sbin/

Not sure why since you can run it fine as a normal user. /sbin is not a place that the shell looks for commands for a normal user, unless you add it yourself. You can run it either as root or by

/sbin/ifconfig

jim
2005-05-05, 07:07 AM CDT
su - (with a dash)
ifconfig -a
lists then all

ifconfig ethX
or to see just one replace the X with your device ID either 0 or 1

ATIR350
2005-05-05, 07:08 AM CDT
thx! that worked!

bae
2005-05-21, 01:06 PM CDT
it also works for me tq :D

stathisx
2005-05-22, 01:58 PM CDT
you could also add /sbin to the PATH variable.....like this
PATH=$PATH:/sbin