Linux 查看本地ip

1.ifconfig -a 或 ifconfig | grep inet (展示更为简洁)

2.ip addr 或 ip addr| grep inet (展示更为简洁)

原文地址:https://www.cnblogs.com/niuben/p/11226130.html