macOS-通过命令获取当前WiFi的SSID 1/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | awk '/ SSID/ {print substr($0, index($0, $2))}' 123456system_profiler SPAirPortDataType | awk -F':' '/Current Network Information:/ { getline sub(/^ */, "") sub(/:$/, "") print}' 12networksetup -getairportnetwork en1 | awk -F": " '{print $2}'networksetup -getairportnetwork en1 | cut -d ' ' -f 4 #macOS #WiFi macOS-通过命令获取当前WiFi的SSID https://dnacore.github.io/post/68d559fa-8c36-4a58-b983-23beeea6fa6a.html 作者 DNACore 发布于 2019年4月4日 更新于 2023年11月30日 许可协议 Transmission-BT-PT 上一篇 Linux-rsync文件和目录同步工具 下一篇 Please enable JavaScript to view the comments