View Saved WiFi password in Ubuntu and Other Linux

2 min

This quick tutorial explains the steps to view saved WiFi password in Ubuntu and Other Linux.

If you use wireless connections and frequently connect to a list of WiFi access points, then you tend to save the password for seamless connectivity in Ubuntu and other systems. However, you may forget the password after a certain period. Here’s how you can quickly find it out.

In Linux, there are two ways you can view the passwords – a) via Terminal method and b) GUI method.

The terminal method is the recommended way to view the saved password. Because irrespective of the Linux distribution, desktop – this works.

However, the GUI method differs based on which desktop environment you use. The reason is the system settings dialogs are different in GNOME, KDE Plasma, Xfce, LXQt, etc.

View Saved WiFi Password

Terminal Method (recommended)

Open a terminal and go to the path /etc/NetworkManager/system-connections/ via the following command. And list the profiles.

cd /etc/NetworkManager/system-connections/
ls -a
List of WiFi profiles
List of WiFi profiles

This path contains the WiFi profiles and their details. There are separate profile entries for each of the WiFi connections which are saved and connected earlier.

Use the following command to display the contents of the files.

sudo cat [name of profile]

In the file, under [wifi-security], you should find the saved password with key psk. See an example below.

View saved password
View saved password

This way you can easily find out the saved WiFi password via terminal.

GUI Method

GNOME (used by Ubuntu, Fedora, and others as default)

Open Settings. Then click on WiFi. Under the Visible network, find your WiFi access point (AP) name. Click on the small gear icon beside the AP.

Wifi Option - GNONE Settings
Wifi Option – GNONE Settings

Then go to the Security tab aand click Show password to view the saved password.

Show saved password in Ubuntu (GNOME)
Show saved password in Ubuntu (GNOME)

KDE Plasma

Open System Settings. Under Network, click on Connections. Click on the WiFi connection name and go to the WiFi security tab. Click on the small eye icon to find out the saved password.

Show Saved WiFi Password in KDE Plasma
Show Saved WiFi Password in KDE Plasma


Xfce doesn’t have any dedicated GUI for finding out the saved password. So follow the above terminal method.

SEE ALSO:   [Quick Tip] How To Create Wi-Fi Hotspot in Ubuntu

I hope this guide helped you find out the saved password which you may have forgotten. Cheers.

We bring the latest tech, software news and stuff that matters. Stay in touch via Telegram, Twitter, YouTube, and Facebook and never miss an update!

Join our Telegram channel and stay informed on the move.

Also Read

Like it? Share with your friends!


Creator of All time Linux user and open-source supporter. Connect with me via Telegram, Twitter, or send us an email.
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x