How I can retrieve the name and password of wifi. I am connected to a router via cable. Is there any way in ubuntu to get this information?
If you want to retrieve the Wifi password of a known connection. Simply go to:
You will see all the saved connection profiles there, and you open it with root previliege:
sudo cat some-ap-profile
The password will be in the [802-11-wireless-security] section, see the psk= part:
[802-11-wireless-security] key-mgmt=wpa-psk auth-alg=open psk=HERE-IS-THE-PASSWORD