/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 胡博的博客 阅读(284) 评论(0) 收藏 举报