使用linux命令直接截取ip地址

ifconfig |grep "inet"|awk -F "[: ]+" '{print $3}'|head -n1
相關文章
相關標籤/搜索