LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-26-2008, 07:59 AM   #1
hongnguyen70
LQ Newbie
 
Registered: Jan 2008
Posts: 23

Rep: Reputation: 15
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
 
Old 02-26-2008, 08:03 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
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
 
Old 02-26-2008, 10:39 AM   #3
truthfatal
Member
 
Registered: Mar 2005
Location: Winnipeg, MB
Distribution: Raspbian, Debian, Slackware, OS X
Posts: 443
Blog Entries: 9

Rep: Reputation: 32
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.

Last edited by truthfatal; 02-26-2008 at 10:43 AM.
 
Old 02-26-2008, 04:13 PM   #4
x1101
LQ Newbie
 
Registered: Apr 2006
Location: Maine USA
Distribution: Ubuntu 7.10 / Fluxbuntu 7.10
Posts: 7

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ifconfig: command not found mjm70 Red Hat 12 08-16-2011 02:04 AM
ifconfig: command not found hetzme Linux - General 2 06-27-2005 01:27 PM
ifconfig!! Command not found!! Azzath Linux - Networking 5 03-01-2005 08:37 AM
ifconfig: command not found anne Linux - Networking 3 04-18-2004 04:08 PM
/sbin/ifconfig gives command not found - help dmalsbury Linux - Software 8 01-06-2004 10:14 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration