Shell/Bash: ip on mac Example

By

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

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!

Others