I have connected my Mac to lots of public Wi-Fi networks. I want to know their passwords. What should be the terminal command to list all the Wi-Fi networks whom I connected with in the past with their passwords.


Open Keychain Access from /Applications/Utilities and search for AirPort. All the network passwords are listed as 'AirPort network password' entries. Double-click an entry, then select Show Password and enter your login password to view it.

  • 4
    thanks thats the graphical way, found other way to do it via terminal: cd /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport – Stack Overflow 32 Oct 12 '14 at 19:44
  • 1
    → Stack: could you develop the method you found, and make an answer of it? – dan Nov 8 '14 at 14:19
  • /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport is an executable file in current version of MacOS. 'cd' to it is invalid. – Nate Feb 27 '19 at 19:36
  1. Open Keychain Access app. It is located in the Applications > Utilities folder.

  2. Select the System keychain in the left menu bar, and select Passwords from the category menu. This will filter the keychains to just your stored passwords

enter image description here enter image description here PFA below.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .