You may find yourself in a situation to know the Wi-Fi password. For example, if you need to provide the password to a visitor and you have not noted it down somewhere.
Thankfully, all the network settings are stored properly and can be retrieved along with wireless password anytime you want.
I’ll show you both GUI and command line ways to see the saved WiFi passwords in Ubuntu and hopefully other Linux distributions.
Method 1: Find saved WiFi password in Ubuntu using the GUI
The procedure to find saved WiFi passwords is quite simple. Launch the Settings application from the gnome applications menu.
Here, in the Wi-Fi tab, you’ll find a list of available WiFi networks and the ones you’ve connected to in the past. Click on the gear icon in the row corresponding to the network whose password you want to find.
In the Security tab and check the Show Password button to reveal the password.
Method 2: Finding saved WiFi password via the terminal
Ubuntu uses Network Manager to handle network related settings. These settings can be found in the /etc/NetworkManager directory.
The details of networks you have connected to in the past are stored in separate files in the sub-directory /etc/NetworkManager/system-connections.
In the associated file, the password for the network connection can be found under the wifi-security section, in the line that starts with psk.
sudo cat /etc/NetworkManager/system-connections/<WiFi_Network_Name>.nmconnection
Replace <WiFi_Network_Name> with the name of the desired WiFi network and make sure there is a “\” before every space in the network’s name (if any).
Voilà, here is the password you were looking for. You can use this method to see saved Wi-FI password in Linux Mint and other distributions.
How did you find the tutorial? Was it helpful? Do let me know in the comment section.