Linux下获取 设置IP、MAC、网关、掩码的shell脚本

Linux下获取IP、MAC、网关、掩码的shell脚本 Mask:ifconfig |grep inet| sed -n '1p'|awk '{print $4}'|awk -F ':' '{print $2}' IP:ifconfig |grep inet| sed -n '1p'|awk '{print $2}'|awk -F ':' '{print $2}' mac:ifconfig |g
相关文章
相关标签/搜索