有没有办法在 OS X 上管理和分类大量无线网络?

cwd*_*cwd 5 mac wireless-networking airport system-preferences macos

在 OS X 上,您可以管理您的无线网络;即拖动它们以设置首选顺序,删除不再需要的顺序等。

唯一的问题是有一个小窗口,一次只能显示大约 4 个网络。

有什么方法可以一次看到更多的网络,也许可以按名称排序?

在此处输入图片说明

Dan*_*eck 8

绝对没有办法改变那个对话框的布局。由于它不支持自定义排序和调整大小,因此您无法更改。


但是可以从以下文件访问此列表的源:

/Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist

您可以在任何文本编辑器、属性列表编辑器/Xcode 4PlistBuddydefaults.

要获取网络的完整列表:

defaults read /Library/Preferences/SystemConfiguration/com.apple.airport.preferences RememberedNetworks | grep SSIDString | cut -d= -f2 | cut -d';' -f1

还要对网络名称列表进行不区分大小写的排序:

defaults read /Library/Preferences/SystemConfiguration/com.apple.airport.preferences RememberedNetworks | grep SSIDString | cut -d= -f2 | cut -d';' -f1 | sort -f

要打印网络名称和安全类型(如列表中所示),请使用:

defaults read /Library/Preferences/SystemConfiguration/com.apple.airport.preferences RememberedNetworks | grep -E "(SSIDString|SecurityType)" | cut -d= -f2 | sed -e 'N;s/\n/ /' -e 's|;||g'