This tutorial shows you three easy ways to find a saved Wi-Fi password in Linux. Note: if your Wi-Fi is not working in Linux, we have the fixes here!

Showing Saved Wi-Fi Password Using the Linux Terminal

For more tips on using the ls command, check out the most important ls commands you need to know. Files in this directory contain information on all the wireless networks that your computer has used. Locate the file with the name of the wireless network from which you wish to extract the password. Under the Wi-Fi security section, the Wi-Fi password should be displayed as psk=”password.” Alternatively, you can use the grep command to show the password of a connected Wi-Fi password. If you want to refine the output even more to display only the password, modify the command as follows: Good to know: Learn how to control your Wi-Fi network in Linux.

Show Saved Wi-Fi Password Using Nmcli

Nmcli is a tool for controlling the Network Manager through the terminal. It can be used to edit, create, display, delete, deactivate, activate, and delete network connections. You can also use it to display the network device status. Viewing saved Wi-Fi passwords using nmcli is perhaps the easiest way to view saved passwords. The procedure is as follows: Note: if your Wi-Fi name has more than one word, remember to enclose it in apostrophes so that the terminal understands that it is a single name. Good to know: use portmaster to protect your computer and network.

Showing Saved Wi-Fi Password Using Graphical User Interface

If you are not a fan of the Linux terminal, you can also use this GUI method. For this demonstration, we are using the Linux Mint Cinnamon edition. The following is a step-by-step guide on how to view saved Wi-Fi passwords using GUI: Alternatively, open your launcher menu and search for “Network Settings.” It should open the same settings page. The page should contain a list of all saved Wi-Fi networks. This page displays all the configurations of the related Wi-Fi network. Your password should be displayed. Click “Cancel” to exit the Settings menu. Netsh is not installed by default on most Linux distros but is available in the repositories of most major distributions.