Check the local ip address mac command

ifconfig | grep "inet " | grep -v 127.0.0.1

inet ip address is behind the machine

Guess you like

Origin www.cnblogs.com/pcxhahaha/p/12329494.html