Published - 6 years ago ( Updated - 6 years ago )
Use ifconfig plus grep to filter out inet
ifconfig |grep inet
en0 (network card)
ipconfig getifaddr en0
en1 (Wifi)
ipconfig getifaddr en1
Use ifconfig plus grep to filter out inet
ifconfig |grep inet
en0 (network card)
ipconfig getifaddr en0
en1 (Wifi)
ipconfig getifaddr en1
How to speak Mandarin or Cantonese on the terminal on macOS? Click to see
How to disable or enable IPV6 on your own MacOS, you can use networksetup -listallnetworkservices to list all MacOS network devices, and then execute the disable command.
No Comment
Post your comment