Shell/Bash: ip on mac Example


Shell/Bash Example: This is the "ip on mac" Example. compiled from many sources on the internet by

ip on mac

ifconfig | grep "inet "

get ip of mac

Use for wireless
ipconfig getifaddr en1
or for ethernet
ipconfig getifaddr en0

ipconfig getifaddr en0 is default for wifi interface.

* Summary: This "ip on mac" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!