ifconfig command not found on CentOS 7

As we know recently CentOS 7 is released ,studded with many new features. On the part of exploring the CentOS 7, I encountered with first change. In my last post on finding the CentOS release version on CentOS 7, I gave a brief info that networking related changes is also found.

A few days back I minimal installed CentOS 7 (x86_64) on my local system. On and Before CentOS 6.x releases,I was habitual to use the command called ifconfig . Theifconfing command helps to provide information about the ethernet devices on your system.

On CentOS 6.x and before, ifconfig command by default used to shipped. Whereas in minimal installed CentOS 7 , I have not found ifconfig command.

This will give you the error , ifconfig command not found.

To get the ifconfig command into our system , run the below given command

Now check the ifconfig command and its path in system (which and whereis command will help)

How I got to know net-tools package need to be installed

Using yum command with provides or whatprovides options help to give you list of package which is required for that particular command.

As per man page of yum :

provides or whatprovides
Is used to find out which package provides some feature or file. Just use a specific name or a file-glob-syntax wildcards to list the packages available or installed that provide that feature or file.

We have used the below given command to find which package provides the ifconfig command.

Below screenshot is last section of command output.
CentOS 7

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值