查看当前Wi-Fi网络设备名称
networksetup -listallhardwareports
关闭Wi-Fi
networksetup -setairportpower en0 off
启动Wi-Fi
networksetup -setairportpower en0 on
扫描附近可用wifi
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport scan
加入 Wifi
networksetup -setairportnetwork en0 TP_LINK_110 12345678
设置代理
networksetup -setwebproxy "Wi-fi" 127.0.0.1 8080
networksetup -setsecurewebproxy "Wi-fi" 127.0.0.1 8080;
查看当前连接wifi详细信息
按住Option键 + 点击此标识图标 (屏幕右上侧)
网友评论