Check Connected Wireless Password in Linux via Command Line

Having connected in wireless connection to surf the internet may cause us to be unaware of the password given for wireless connection’s authentication.

While happily connected, some of our colleagues might ask for the same password to connect to the wireless connection. So, sometimes we don’t remember it or we do not have the luxury of time to just type the password in a notes or any place elsewhere.

That is when it is needed to find another way for retrieving the password for connecting the access point where our laptop or workstation has already been connected.

Below are alternative of steps can be done in Ubuntu Linux distribution operating system :

1. Check the connection file properties.

Actually all the previous connection which has already been successfully established has been saved in a file located in /etc/NetworkManager/system-connections. Using the command ‘ls -al’ can show all connection file property in the form of a list as shown below :

3. Since the file itself owned by root, normal user cannot be used to display the content of wireless connection file. As shown in the above output comand’s execution. So, switch to root user first as shown below :