Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Henk van Ess

macrumors 6502
Original poster
Aug 20, 2008
314
241
Amsterdam
I have this annoying first world problem. When I revisit a hotel, I often get the old WiFi settings and manually delete the network via Network settings. My list is super long, sometimes with very confusing similar names. It's not possible to sort the list, although the GUI lets you think that for a brief moment in time that it is because a click on "Network Name" makes it gray, and you expect something will happen.


1606944270747.png



It would be super handy if I would be able to sort the known networks alphabetically to find the culprit quickly. Here it is. Go to terminal and type:

networksetup -listpreferredwirelessnetworks en0 | sort

It will sort all names. Now you know the correct name, you can manually delete the culprit with

removepreferredwirelessnetwork en0 <name>

Where <name> is the name of the network you found with sort.

Aaron Huslage came with this solution when I asked for it on discord server Rene Ritchie.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.