web | Java

查看linux服务器IP的命令,同时只显示包含ip所在的行打印出来。

千锋教育

ifconfig ip a ifconfig | grep 'inetaddr' ip a | grep 'inetaddr