CentOS7执行ifconfig Command not found 未找到命

转载 2015年11月17日 23:08:47

本文来为各位介绍一下CentOS7执行ifconfig Command not found 未找到命令错误问题的解决办法,希望能帮助到大家。


CentOS7刚发布,我忍不住把DELL T410从CentOS6升级到CentOS7。好不容易等安装结束后,立即配置网络,然后在yum源上安装环境。可是执行ifconfig的时候系统提示让我傻了眼:
[root@chaoge ~]# ifconfig
-bash: ifconfig: 未找到命令
这可是新安装的系统,怎么会没找到熟悉ifconfig命令呢?网上搜一下,一大堆人都在说是环境变量问题,但我确信我的/etc/profile设置是对的,于是终于找到一篇文章说是安装下net-tools就好

 代码如下 复制代码
[root@chaoge ~]# yum install net-tools

已加载插件:fastestmirror

 代码如下 复制代码
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
base                                                                                                                                                                                           | 3.6 kB  00:00:00    
extras                                                                                                                                                                                         | 3.3 kB  00:00:00    
updates                                                                                                                                                                                        | 3.4 kB  00:00:00    
updates/7/x86_64/primary_db                                                                                                                                                                    | 2.8 MB  00:00:08    
Determining fastest mirrors

软件包 net-tools-2.0-0.17.20131004git.el7.x86_64 已安装并且是最新版本
无须任何处理
因为我已安装过net-tools所以提示我已经安装,现在熟悉的ifconfig又回来了

 代码如下 复制代码

[root@chaoge ~]# ifconfig
em2: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 78:2b:cb:41:9a:03  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.48  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::7a2b:cbff:fe41:9a02  prefixlen 64  scopeid 0x20<link>
        ether 78:2b:cb:41:9a:02  txqueuelen 1000  (Ethernet)
        RX packets 82668  bytes 7831470 (7.4 MiB)
        RX errors 0  dropped 153388  overruns 0  frame 0
        TX packets 1276  bytes 204913 (200.1 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 12  bytes 1071 (1.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 12  bytes 1071 (1.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 

相关文章推荐

CentOS7 crontab 不执行,报错 /bin/sh: root: command not found

使用CentOS7 执行定时脚本,结果提示报错: /bin/sh: root: command not found 问题在于文件 /var/spool/cron/root ,中无需再写root。 ...

linux系统中shell中执行命令是报:bash: ifconfig: command not found错误的解决办法

虚拟机上自己新装的系统,在运行如下命令时出现错误 [apn172@localhost apn172]$ ifconfig -a bash: ifconfig: command not found ...
  • apn172
  • apn172
  • 2011-12-05 22:23
  • 1006

解决找不到ifconfig命令,更改路径并重启系统后进入命令行界面以及各个命令无法执行Linux:-bash: ***: command not found

本人用的红帽企业版5,由于版本问题,一些东西都没装上,连ifconfig命令都无法使用,所以从网上搜集了一堆资料,已经解决了这个问题,方法有三: 方法一:[root@localhost sbin]$...

bash: ifconfig: command not found 解决办法

经常遇到"bash:xxxx:command not found"这样的问题,用root用户也不行,在网上查阅了此问题,解决方法如下: 原文1.http://hi.baidu.com...

bash: ifconfig: command not found 解决办法

原文地址:http://blog.csdn.net/scoliver/article/details/7242896 经常遇到"bash:xxxx:command not found"这样的...
  • zx824
  • zx824
  • 2012-06-25 11:49
  • 946

ifconfig command not found

昨天在虚拟机上玩儿centOS结果用ifconfig查询网络配置。结果,ifconfig后,提示出如题所示的错误信息。   BD,GG了一下,网上多是提示修改etc/profile里修改配...

ifconfig command not found

原文链接:http://simonhu.blog.51cto.com/196416/1588971 今天在一台PC上安装了CentOS 7,当时选择了最小安装模式,安装完成后马上用ifcon...

The resource object with key 'Login_Username_Label' was not found. (未找到键为'Login_Username_Label的资源对象)

Title:asp.net 支持多语言 国际化 网站多语言版本 The resource object with key 'Login_Username_Label' was not found.(未...

linux 输入ifconfig命令报错:“ifconfig: command not found” 其他命令类似这种解决方法

输入ifconfig命令报错:“ifconfig: command not found” 原因:ifconfig命令所在路径/sbin未包含在系统环境变量PATH中(遇到其他命令出现这种情况可以参考...

centos65安装pg935时报错: jade: Command not found

centos65安装pg935时报错: jade: Command not found 与解决
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)