linux命令netstat或ifconfig未找到

linux命令netstat或ifconfig未找到


linux使用netstat或者ifconfig命令时,显示命令未找到。
通过yum search netstat这个命令,匹配结果如下:
================================= 匹配:netstat ===================
bwm-ng.x86_64 : Bandwidth Monitor NG
dstat.noarch : Versatile resource statistics tool
net-snmp.x86_64 : A collection of SNMP protocol tools and libraries
net-tools.x86_64 : Basic networking tools
python2-psutil.x86_64 : A process and system utilities module for Python
python34-psutil.x86_64 : A process and system utilities module for Python
unhide.x86_64 : Tool to find hidden processes and TCP/UDP ports from rootkits

运行yum install net-tools 就OK了
netstat和ifconfig命令在安装了net-tools后都可以使用了。


原文地址:https://www.cnblogs.com/gyfluck/p/9772894.html