LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   EZ Newbie question: Where is ifconfig in Fedora 2? (https://www.linuxquestions.org/questions/fedora-35/ez-newbie-question-where-is-ifconfig-in-fedora-2-a-222402/)

jcubed 08-25-2004 05:47 PM

EZ Newbie question: Where is ifconfig in Fedora 2?
 
:newbie:
I need some way to check my IP address, and "whatsmyip.com" doesn't work if I'm behind a firewall. I've looked around and found confirmation that ifconfig is still in Fedora. (Whew!) However, when I su and do a "which ifconfig", Fedora tells me it isn't in the path.

:o I'm still green, and could use a quick pointer to where I should find ifconfig. :o

Thanks!
:newbie:

michaelk 08-25-2004 05:51 PM

How about:
whereis ifconfig
or
locate ifconfig
:)

kostason 08-25-2004 08:54 PM

Try this one

/sbin/ifconfig -a

-------------------------------
Kostason

jcubed 08-26-2004 12:44 PM

Thanks guys!
 
Both posts helped me. Many thanks! :)

Baltasar 08-26-2004 02:20 PM

You could also get root access with "su-"
When you type "su -" instead of "su" you get the login shell from root and not from your user account.
"/sbin", /usr/sbin" and /usr/local/sbin aren't exported to PATH for other users then root. so if you want to execute ifconfig for example, you must type the full path /sbin/ifconfig


All times are GMT -5. The time now is 10:40 PM.