shell中获取本机ip地址
摘要:
shell中获取本机ip地址 方法一: /sbin/ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:" or /sbin/ifconfig|sed -n '/inet addr/s/ 阅读全文
posted @ 2018-10-13 13:57 Shihu 阅读(12442) 评论(0) 推荐(0) 编辑