Linux查看本机IP地址
- 命令
ipconfig
可能会遇到的问题
- Command ‘ifconfig’ not found, but can be installed with:
Command 'ifconfig' not found, but can be installed with:
sudo apt install net-tools
解决办法
- 安装net-tools再执行
ipconfig
- 安装网络工具
sudo apt install net-tools
- 再执行
ipconfig
命令就能正常查看了