linux获取本机ip

ifconfig | grep -i 'inet addr:' | awk '{print $2}' | awk -F : '{print $2}' | grep [^127.0.0.1]
相关文章
相关标签/搜索