linux get wifi password code example
Example 1: get all wifi password by terminal linux
sudo grep psk= /etc/NetworkManager/system-connections/*
or
sudo grep -r '^psk=' /etc/NetworkManager/system-connections/
Example 2: find saved wifi password in linux
sudo cat /etc/NetworkManager/system-connections/<WiFi_Network_Name>