Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-16-2004, 06:04 AM   #1
Registered: Jul 2004
Posts: 332

Rep: Reputation: 30

I use RedHat9.
If I type "ifconfig" command , the answer is "Command not found".
Why can't I use ifconfig comand?
Old 07-16-2004, 06:15 AM   #2
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
As a user, you should use /sbin/ifconfig
Old 07-16-2004, 06:17 AM   #3
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
It may be that it's been locked down for root's use only. Use su to become root and then try again.
Old 07-16-2004, 06:23 AM   #4
Registered: Oct 2003
Location: Rio de Janeiro, Brazil
Distribution: Fedora Core 5
Posts: 76

Rep: Reputation: 15
You're probably doing this as a non-root user. ifconfig lives at /sbin, which by default isn't (and shouldn't really be) included on regular users' PATH.

In this particular case, basic ifconfig functionality still works if you run it as a regular user, so typing /sbin/ifconfig will work. However, if you need to use it for anything else other than simply querying your network interfaces, you will need to run it as root.




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
connecting /sbin/ifconfig to bash command ifconfig flammable2 Fedora 4 11-12-2005 07:58 AM
Ifconfig mrodriguez Linux - Newbie 2 02-16-2005 12:17 PM
Oh where or where has ifconfig gone thotFree Linux - Software 3 11-13-2003 12:27 AM
Ifconfig ! mesta Linux - Software 2 02-04-2003 09:18 AM
ifconfig Astro Slackware 6 01-08-2003 04:30 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:32 AM.

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