Ask Your Question
2

whereis ifconfig on fedora 18 ?

asked 2012-12-04 04:34:15 -0500

jherrera gravatar image

updated 2013-06-12 08:36:24 -0500

FranciscoD_ gravatar image

Hi,

i can't execute ifconfig on fedora 18 ? is this normal ? with netstat I have the same problem ?

[root@thunderspeed ~]# ifconfig
bash: ifconfig: command not found...
[root@thunderspeed ~]# 
[root@thunderspeed ~]# netstat
bash: netstat: command not found...
[root@thunderspeed ~]#

kind regards,

Jonay

edit retag flag offensive close merge delete

Comments

did u try /sbin/ifconfig ?

xcalibur gravatar imagexcalibur ( 2014-09-10 22:05:02 -0500 )edit

6 Answers

Sort by ยป oldest newest most voted
7

answered 2012-12-04 07:52:00 -0500

Akshay gravatar image

there is an alternative to "ifconfig", use "ip" for more about net-tools you can see this bug report https://bugzilla.redhat.com/show_bug.cgi?id=868643

edit flag offensive delete link more
2

answered 2012-12-10 14:33:28 -0500

ThomasMcA gravatar image

To search for which package provides a particular command or file, use the provides parm, like this:

sudo yum provides ifconfig

The results of that command return net-tools, so use this command to install net-tools:

sudo yum install net-tools
edit flag offensive delete link more

Comments

Just a hint: yum doesn't need root access for such things as provides, list, info and so on; only for commands that install, remove or update packages.

sideburns gravatar imagesideburns ( 2013-06-12 15:09:07 -0500 )edit

Yea, but it's easier to always use sudo - that way I don't have to think about whether or not I need it. Also, using both sudo and a user's ID with yum creates 2 caches - one under the user's ID and one under sudo's.

ThomasMcA gravatar imageThomasMcA ( 2013-06-13 13:19:26 -0500 )edit
1

answered 2012-12-10 14:26:52 -0500

Orestes910 gravatar image

Jonay,

yum install net-tools will get you ifconfig back. It seems by default there is a pifconfig command. Not sure what that's all about though...

edit flag offensive delete link more
0

answered 2013-06-11 16:59:30 -0500

Valent gravatar image

Just use pifconfig instead of ifconfig

edit flag offensive delete link more
0

answered 2012-12-10 12:36:43 -0500

stvang gravatar image

updated 2012-12-10 12:39:23 -0500

that great but some older scripts and tools use ifconfig. I'm all about learning new tools and have no issue with moving forward. However sometimes those older tools are needed to run older scripts. Navigating to this page after searching and reading "use the new tool" is useless.

edit flag offensive delete link more
0

answered 2012-12-04 05:17:16 -0500

mihkel gravatar image

Use whereis command to find out where those programs are. For example:
whereis ifconfig

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-12-04 04:34:15 -0500

Seen: 40,788 times

Last updated: Jun 12 '13