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?

1 Answer 1


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:

  • Passwords in plain-text??? O.O
    – Byte Commander
    Sep 23, 2015 at 10:42
  • @ByteCommander Yes, in plain-text, the only protection is the root access, but if you mount it on another system as a normal data drive...
    – P.-H. Lin
    Sep 23, 2015 at 15:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.