LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ifconfig: command not found (https://www.linuxquestions.org/questions/linux-newbie-8/ifconfig-command-not-found-623917/)

hongnguyen70 02-26-2008 06:59 AM

ifconfig: command not found
 
Hi
I have fedora 8 installed both on my laptop and desktop. When I typed ifconfig I receive this message

bash: ifconfig: command not found

When I used to find command to look for the file I receive this message

find: ifconfig: No such file or directory

But when I go to Places then Search for files, I found it under /sbin

Anyway, I tried to execute it but nothing happen.

What is exactly the problem? why I can not execute the ifconfig

Please help

Simon Bridge 02-26-2008 07:03 AM

Try "locate ifconfig".

"ifconfig" didn't work because it's not in your path. (echo $PATH)
"find ifconfig" didn't work because you didn't give find any instructions. Read the manual.

How about:

/sbin/ifconfig

truthfatal 02-26-2008 09:39 AM

Also, ifconfig should be in roots path, you could also try "sudo ifconfig" or "su - -c ifconfig"
particularly if you want to do more than just check the settings.

x1101 02-26-2008 03:13 PM

As previous post have pointed out the issue is that ifconfig is not in your path. It resides in /sbin/ifconfig. You can either run /sbin/ifconfig each time, or you can add /sbin/ to your path. This can be done in a number of ways depending on your distro.


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