The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,862 other subscribers

See a List of All Wi-Fi Networks a Mac Has Previously Connected To

Posted by jpluimers on 2025/12/24

[Wayback/Archive] See a List of All Wi-Fi Networks a Mac Has Previously Connected To

n modern versions of Mac OS, like macOS Mojave, Catalina, Sierra, OS X El Capitan, and Yosemite, you can shorten the syntax considerably as so:
defaults read /Library/Preferences/SystemConfiguration/com.apple.airport.preferences |grep SSIDString
In prior versions of Mac OS X, you can opt for the same as the above command, or use the lengthier string below with heavy regex:

defaults read /Library/Preferences/SystemConfiguration/com.apple.airport.preferences RememberedNetworks | egrep -o '(SSID_STR|_timeStamp).+' | sed 's/^.*= \(.*\);$/\1/' | sed 's/^"\(.*\)"$/\1/' | sed 's/\([0-9]\{4\}-..-..\).*/\1/'
You will see something like so as the output, with only the SSID of routers listed:
This-Router
linksys
CoffeeHouse
RouterFromDubiousLocationThatMacShouldntHaveBeenAt
Starbucks Cupertino
Ancient_Router_from_2007

Queries

Note that the first did not get me the result but the second did:

  1. [Wayback/Archive] macos view know wifi networks terminal – Recherche Google
  2. [Wayback/Archive] macos airport list all known wifi networks – Google Search

The first one did get me [Wayback/Archive] Mac Terminal WiFi Commands which is interesting but did not solve my problem.

–jeroe

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.