How to list all saved WiFi networks in centos?

Issues related to applications and software problems and general support
Post Reply
search4workingdistro
Posts: 67
Joined: 2020/11/18 10:52:19

How to list all saved WiFi networks in centos?

Post by search4workingdistro » 2023/12/06 12:07:45

How to list all saved WiFi networks in Centos?
And then see a saved password for one of them?

Code: Select all

$ sudo nmcli connection show WiFiName -s | grep psk
Error: WiFiName - no such connection profile.

zovi
Posts: 1
Joined: 2023/12/07 07:55:19

Re: How to list all saved WiFi networks in centos?

Post by zovi » 2023/12/07 08:14:38

Try the following:

Code: Select all

sudo grep -h -A 1 -E '(psk|key-mgmt)' /etc/NetworkManager/system-connections/*
This should search each connection and look for either psk or key-mgmt line for password and print each connection with the names

Post Reply