ifconfig 是类 Unix 系统中的命令行工具,用于查看与配置网络接口(如网卡的 IP 地址、子网掩码、启用/禁用接口等)。在许多 Linux 发行版中它已逐渐被 ip 命令取代,但在旧系统、部分文档与排错场景中仍常见。
/ˈɪfkənfɪɡ/
I used ifconfig to check my IP address.
我用 ifconfig 查看了我的 IP 地址。
After the server rebooted, she ran ifconfig to confirm the interface was up and the address was correct before restarting the web service.
服务器重启后,她运行 ifconfig 确认网卡接口已启用且地址正确,然后才重启网页服务。
ifconfig 是 interface configuration(网络接口配置)的缩写:if 来自 interface,config 来自 configuration。它最早出现在 BSD/Unix 系统的网络管理工具集中,后来也被许多 Linux 发行版继承。