在Ubuntu中查看IP地址可使用ifconfig ,没有错和其它的linux操作系统一样,可是我输入后却得到以下输出错误:Command 'ifconfig' not found,but can be installed with: apt install net-tools.

这里其实已经给了解决方案,需要安装net工具才可以使用ifconfig工具,此时我们直接输入 apt install net-tools 静待完成后就可以使用ifconfig工具了。
顺便说一下,ubuntu有针对中国的专门软件下载地址如下:http://cn.archive.ubuntu.com/ubuntu/

下一篇就是安装桌面显示系统了。

解决方式

  • 按提示安装网络工具:apt install net-tools(或 sudo apt install net-tools)。
  • 安装后即可使用 ifconfig、netstat、arp 等命令。
  • 新版本更推荐用 ip addr(或 ip a)、ip route 替代 ifconfig。

国内下载慢时可改用镜像源,Ubuntu 官方中国区归档地址见文中链接。

相关阅读

参考资料