LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ifconfig!! Command not found!! (https://www.linuxquestions.org/questions/linux-networking-3/ifconfig-command-not-found-296213/)

Azzath 03-01-2005 05:45 AM

ifconfig!! Command not found!!
 
Hi to all !!
i tried to do an 'ifcofig' in my newly installed FC3 box, and it says bash:ifconfig:command not found
What is the possible cause and what do i need to do?
Thank you,
Regards Azzath.

Darin 03-01-2005 05:54 AM

The command is ifconfig so make sure you spelled it correctly. It is also a system command that is not intended to be run by normal users, so if you are logged in as a user besides root or you used su without a - (dash) at the end then it will not be in your path but you can try /sbin/ifconfig.

jhp 03-01-2005 05:55 AM

sounds like you haven't installed nettools (if ifconfig isn't in your /sbin folder).

it's on one of the distro cds somewhere in an rpm - something like net-tools-1.xx.xx.rpm, just do an rpm install on that file.

hth.

john

Azzath 03-01-2005 06:06 AM

Thanx Darin and john,
I misspelled it in here but i did spell correctly on the terminal,and i was a root when i did it, anyway..
When i did /sbin/ifconfig then it did show the configuration. but why do i have to go to /sbin to do an ifconfig? why is it in my Mandrake box when i just typed in ifconfig then it worked straight away?
I can do an alias to get this work but i didn't do any aliasing for the mandrake box..
Just curious?

Thanx guys.
Take care.
Regards Azzath

Darin 03-01-2005 06:12 AM

Quote:

Originally posted by Darin
...you used su without a - (dash) at the end then it [the sbin directory] will not be in your path...

gnube 03-01-2005 07:37 AM

Check to see that /sbin is in your $PATH variable as root. If not, add with

PATH=$PATH:/sbin/

and that should fix it.


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