This is So Easy
Lets begin .
We'll need : airmon-ng ,airodump-ng thats all :D
So install them : sudo apt-get install aircrack-ng
after that check for your wifi card name :
iwconfig
It will display your wifi card name mine is : wlan0
Change your wlan0 interface to monitor mode to get any APs informations :
sudo airmon-ng start wlan0
Now we have the mon0 interface to use it and listen to the wifi world :D
now begin the wifi scan :
sudo airodum-ng mon0
Now you will see all the APs information hit Ctrl + C when you see them all ( give it some minutes e.g : 2 min )
Now you will have some thing like this
BSSID PWR Beacons #Data, #/s CH MB ENC CIPHER AUTH ESSID
00:04:3F:00:39:8A -64 53 11 0 6 54 . WPA2 CCMP MGT <length: 0>
00:19:70:8F:B1:DF -71 6 0 0 1 54e. WPA2 CCMP PSK ACHRAF
00:04:ED:BB:9F:06 -71 3 0 0 1 54 WEP WEP Ali casillas
00:19:70:75:7B:A8 -72 2 0 0 1 54e. WPA2 CCMP PSK D.info
00:19:70:4A:0E:E9 -69 5 3 0 7 54e. WPA CCMP PSK Electro youssef Dreambox
94:0C:6D:B4:80:9D -72 2 0 0 1 54 WPA TKIP PSK TP-LINK_B4809D
thats all if you just want to have this information . (unless you want to ... )
or you can just take all your wifi paswwords :
Network or wifi passwords can be found in
/etc/NetworkManager/system-connections. There is a file for each
connection with its configuration, also you need root privileges to
read them but the password isn't encrypted.
this is what you were sharing for : it is already solved