/sbin/ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}' | head -n 1
posted on 2013-01-30 18:19 胡博的博客 阅读(275) 评论(0) 编辑 收藏 举报