介绍

ifconfig 命令是 net-tools 包的一部分,如果安装系统时在软件包选择的页面没有选择 Standard System Utilities(标准系统工具)默认会不安装,所以解决办法也很简单,通过 apt 安装一下 net-tools 即可。

故障表现

ifconfig
-bash: ifconfig: command not found

解决办法

# 安装 net-tools
apt install net-tools -y

执行命令后 ifconfig 已经可以正常使用

Last modification:October 27, 2023
If you think my article is useful to you, please feel free to appreciate