Display Wifi Password in Mac via Terminal

Display Wifi Password in Mac via Terminal

Given the complexity of some wi-fi network passwords combined with the general infrequency of entering them and that they’re typically saved on use, it’s not terribly unusual to forget what a specific routers wireless password is. Fortunately, if you’re on a Mac, there are a few ways to go about finding those lost or forgotten wi-fi router login details.

Open terminal, copy and paste the following command:
security find-generic-password -ga “wifi_name” | grep “password:”

Replace the wifi_name to the wireless access point name

Plz Share Share on FacebookShare on Google+Share on LinkedInTweet about this on TwitterEmail this to someoneShare on RedditShare on TumblrDigg thisBuffer this pagePrint this pagePin on PinterestShare on StumbleUponFlattr the author
Bookmark the permalink.


  1. what is this? i did not understand anything. please post screenhsots or email them to me.

  2. Freinds please help me to learn this .thanks …

  3. does not work please help this is error message:
    The specified item could not be found in the keychain.

  4. does security find-generic-password -ga “wifi_name” | grep “password:”
    only work on saved passwords?

Leave a Reply

Your email address will not be published. Required fields are marked *