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 SSIDStringIn 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:
- [Wayback/Archive] macos view know wifi networks terminal – Recherche Google
- [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