The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 11,179     Votes:  3 
Tags: wireless   password  
Link: 🔍 See Original Answer on Ask Ubuntu ⧉ 🔗

URL: https://askubuntu.com/q/1379422
Title: How to find the saved Wifi Password in Ubuntu
ID: /2021/12/06/How-to-find-the-saved-Wifi-Password-in-Ubuntu
Created: December 6, 2021
Upload: September 15, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


One-liner

A one-liner you can use:

sudo grep --with-filename psk= /etc/NetworkManager/system-connections/*

For example:

$ sudo grep --with-filename psk= /etc/NetworkManager/system-connections/*

/etc/NetworkManager/system-connections/SHAW-999999:psk=99999A999999
/etc/NetworkManager/system-connections/SHAW-999999-5G:psk=99999A999999
/etc/NetworkManager/system-connections/SHAW-999999-5G:psk=999999999999

After “system-connections/” you will see your WiFi network name. EG “SHAW-999999”. Then you will see your password after “:psk=”. EG “99999A999999”. WiFi network name and password were redacted in case my neighbour is hoping for a free bus ride :)

⇧ How to print out status bar and percentage? Use cron to get SE Data Explorer data when it's updated  ⇩