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
I myself will need to use MacOS to dial VPN in the command line. Here I provide my alias and setting method
This function is very useful, but be very careful, read it first and then delete it, if you make a wrong directory, you will die miserably
No Comment
Post your comment