First we will see how to see the saved wifi password in Ubuntu
- Ubuntu stores the password in the “Network Manager” directory. When you give the save password option on WiFi, Ubuntu store the wifi password inside the Network manager directory under the file name of “System-connections”.
- Now follow the instructions as given below
Step 1: open Terminal and type the following command and press “Enter”
cd /etc/NetworkManager/system-connections/
- The output will be like this
cd /etc/NetworkManager/system-connections/ — output
- Now you need to view the available WiFi connection or stored WiFi connection with your Ubuntu PC. To view that type the following commad and press “Enter”
ls -a
- It will show the list of stored wifi connections available
- To view the stored wifi password type in the following command
sudo cat name_of_the_wifi
- “psk” is the password of the wifi
- Replace the “name_of_the_wifi” with the wifi name you want
Now we will see how to view the saved wifi password in Windows
- Press the “windows key”
- Now search for “cmd”
- After typing in “cmd”, Press alt+shift+enter in your keyboard
- A dialogue box will appear like the image below
- Press “yes”, and cmd will appear
- Now type the following command
netsh wlan show profiles
- It will give a list of wifi names.
- To view the password of the wifi type the following command
netsh wlan show profile name = "wifi_name" key = clear
- The “key content” is the password of the wifi
- Replace the “wifi_name” with the name of the wifi you want, also note that the wifi name should be given in quotations.