I want to find the password for the wireless network that I am currently connected to (and I entered the password when connecting to the network). How can I do this in Ubuntu?
If you want to do this with the command line, the wireless network configuration files are saved in the
/etc/NetworkManager/system-connections/ directory. You can get them all at once like this:
sudo grep -r '^psk=' /etc/NetworkManager/system-connections/
This will give you output like this:
You can suppress the filename with the
sudo grep -hr '^psk=' /etc/NetworkManager/system-connections/
The output is easier to read at a glance: