最近在给客户安装Debian Linux服务器系统后,输入: ifconfig命令,提示:-bash: ifconfig: command not found( ifconfig:未找到命令) ,相信很多网友也遇到了这种情况,下面就将原因和解决方法分享给大家。
Debian -bash: ifconfig: command not found 解决方法
原因是: Debian Linux系统未安装 net-tools 或 该Linux版本已弃用该命令 (在Debian 10 (从Debian 9 stretch以后 )中,ifconfig命令已被弃用,这就是为什么你会得到ifconfig命令丢失的错误,解决这个报错的方法是使用ip addr,它可以与ifconfig命令执行相同的任务!),所以大家可以使用: ip addr 命令查看网卡信息。
Debian Linux:net-tools安装方法
sudo apt-get update sudo apt-get upgrade sudo apt-get install net-tools
使用ifconfig命令执行同样的操作
安装完net-tools后,使用whereis ifconfig查看ifconfig的位置
whereis ifconfig
再执行以下命令:
alias ifconfig='/sbin/ifconfig'
然后在执行ifconfig就不会提示命令找不到的错误了!
本文经过IT备忘录小编实际操作所记录,希望能对您有帮助。
temp_banner("c01");查看更多关于Debian -bash: ifconfig: command not found【解决方法】的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did186348