How to Find Saved WiFi Password in Linux Mint Using GUI or Terminal

When you connect to a wireless network using WEP, WPA or WPA2-PSK, the password is saved in Linux Mint (or any other operating system) when you use “connect automatically”.

Imagine a situation where you need to know the WiFi password and you have not noted it down somewhere. Suppose you need to provide the WiFi password to a visitor.

You can easily retrieve the password of an earlier connected wireless network in Linux Mint if you have admin access.

In this beginner’s tutorial, I’ll show you how to find the saved WiFi passwords in Linux Mint.

Method 1: Find saved WiFi password in Linux Mint via GUI

The procedure to find the saved WiFi password is very simple. Click on the Menu button and type Network in the search bar. Choose Network Connections in there:

Show network connections in Linux Mint

In Network Connections, you’ll see all the WiFi networks you have been connected in the past.

Select the one for which you want to know the password and click on the gear icon.

Wifi settings Linux Mint

In here, under the Wi-Fi Security tab, check the Show password button to reveal the password.

Show saved wifi password in Linux Mint

You see how easy was it? You are not restricted to use the GUI. If you are a terminal lover, let me show you how to get saved WiFi passwords in Linux terminal.

Method 2: Find saved WiFi passwords in Linux Mint via Terminal

Linux Mint uses Network Manager for handling network related settings. These settings can be found in /etc/NetworkManager location.

If you look in to the /etc/NetworkManager/system-connections directory, you’ll find a file stored for each network you had connected to in the past.

You can view the content of the desired network connection’s file and you’ll find the password under wifi-security section and in the line starting with psk.

sudo cat /etc/NetworkManager/system-connections/<WiFi_Network_Name>

Make sure that there is a “\ ” before every space in the network’s name (if any).

Get saved wifi password in Linux terminal

And that’s all you had to do to get the saved password. You can do similar steps to get the stored WiFi passwords in Ubuntu. I hope the article helped you. Ciao :)

About the author
Abhishek Prakash

Abhishek Prakash

Created It's FOSS 11 years ago to share my Linux adventures. Have a Master's degree in Engineering and years of IT industry experience. Huge fan of Agatha Christie detective mysteries 🕵️‍♂️

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world


Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.