🔐 View Saved Wi-Fi Passwords on Ubuntu
You can view previously connected Wi-Fi passwords by accessing the NetworkManager configuration files.
📁 Step-by-Step Guide
List all saved Wi-Fi profiles:
ls /etc/NetworkManager/system-connections/View the contents of a specific Wi-Fi profile:
sudo cat "/etc/NetworkManager/system-connections/<WiFi-NAME>.nmconnection"Replace
<WiFi-NAME>with the actual name of the Wi-Fi profile (file name).Locate the password: Look for the line containing:
psk=your_wifi_password
🔒 Note:
- Root access (
sudo) is required to read these files. - These files are stored in
.nmconnectionformat on modern Ubuntu versions using NetworkManager.
Written by A.M. Rinas