IPアドレス
ifconfig | grep inet | grep -v 127.0.0.1 | cut -d: -f2 | awk '{ print $2}'
MAC アドレスのみ
ifconfig en0 | awk '/ether/ { print $2 }'
Go to list of users who liked
More than 3 years have passed since last update.
IPアドレス
ifconfig | grep inet | grep -v 127.0.0.1 | cut -d: -f2 | awk '{ print $2}'
MAC アドレスのみ
ifconfig en0 | awk '/ether/ { print $2 }'
Register as a new user and use Qiita more conveniently
Go to list of users who liked