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

Notices


Reply
  Search this Thread
Old 04-03-2002, 09:54 AM   #1
loganwva
Member
 
Registered: Jul 2001
Location: West Virginia
Distribution: SuSE 9.1
Posts: 117

Rep: Reputation: 15
ifconfig


When I try to run the ifconfig command I get this error:

[root@redhat kenny]# ifconfig
bash: ifconfig: command not found
[root@redhat kenny]#


How do I install it?

Using Redhat 7.2
 
Old 04-03-2002, 10:05 AM   #2
jatimon
Member
 
Registered: Apr 2002
Posts: 33

Rep: Reputation: 15
it must not be in your path

i think it is /sbin/ifconfig

are you root??
 
Old 04-03-2002, 12:45 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Re: ifconfig

Quote:
Originally posted by loganwva
When I try to run the ifconfig command I get this error:

[root@redhat kenny]# ifconfig
bash: ifconfig: command not found
[root@redhat kenny]#


How do I install it?

Using Redhat 7.2
It's in net-tools
 
Old 04-03-2002, 02:29 PM   #4
loganwva
Member
 
Registered: Jul 2001
Location: West Virginia
Distribution: SuSE 9.1
Posts: 117

Original Poster
Rep: Reputation: 15
jatimon, you were right it is not in the path. I went to /sbin and did a ./ifconfig and it worked great.

Now how do I get it in the path?
 
Old 04-03-2002, 06:00 PM   #5
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
Its either change .bash_profile or .bashrc, I can't remember which, but that problem comes from the fact that you used 'su' to get to root and for some reason its either something redhat did, or something new in shell-utils that you keep the original user path instead of exec'ing root's.

Cheers,

Finegan
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:57 AM.

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
Open Source Consulting | Domain Registration