Skip to content

Instantly share code, notes, and snippets.

@ibnsamy96
Created April 9, 2025 07:05
Show Gist options
  • Save ibnsamy96/5905d6c0414098679467b2b470195a0b to your computer and use it in GitHub Desktop.
Save ibnsamy96/5905d6c0414098679467b2b470195a0b to your computer and use it in GitHub Desktop.
get all stored wifi passwords

Use this command: sudo grep -r '^psk=' /etc/NetworkManager/system-connections/

It will give you output like this:

/etc/NetworkManager/system-connections/<wifi1-ssid>:psk=<wifi1-password>
/etc/NetworkManager/system-connections/<wifi2-ssid>:psk=<wifi2-password>
/etc/NetworkManager/system-connections/<wifi3-ssid>:psk=<wifi3-password>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment