2013-11-01から1ヶ月間の記事一覧

ipアドレスを取得

cmd

centos $ ifconfig eth0 | grep -v inet6 | grep inet | awk '{print $2;}' | cut -f2 -d ':'osx % ifconfig en0 | grep -v inet6 | grep inet | awk '{print $2;}'