This is an article which is written in order to show how to search save wifi password in Linux Ubuntu. The password which has already been saved is actually stored in a certain location. This is actually performed in a Linux operating system with the Ubuntu Xenial 16.04 by executing the following command to view the file content of a saved wifi configuration connection :
cat file_name Description : cat : It is a command which is used to print out the content of the file. It can also described as concatenate files and print on the standard output based on manual page.
Below is the execution in the real situation :
root@hostname:/etc/NetworkManager/system-connections# cat Mynetwork [connection] id=mynetwork uuid=xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx type=wifi permissions=user:user:; secondaries= [wifi] mac-address=XX:XX:XX:XX:XX:XX mac-address-blacklist= mac-address-randomization=0 mode=infrastructure seen-bssids= ssid=mynetwork [wifi-security] auth-alg=open group= key-mgmt=wpa-psk pairwise= proto= psk=mypassword [ipv4] dns-search= method=auto [ipv6] addr-gen-mode=stable-privacy dns-search= method=auto root@hostname:/etc/NetworkManager/system-connections#
As it can be seen in the above output which is actually executing the command ‘cat’ with the additional parameter of the text file which is going to be printed its content, the SSID’s name is mynetwork. And the password which is used to access the access point named ‘mynetwork’ is ‘mypassword’ as shown in the content file above.
There are lots of files which is actually saved wifi configuration and each file is based on one single access point or a unique SSID. The name of the file which the output printed is also based on the SSID name. Below is the list of files available inside the folder which is specifically stored the saved wifi configuration :
root@hostname:/etc/NetworkManager/system-connections# ls mynetwork ... root@hostname:/etc/NetworkManager/system-connections#
Each time every new connection made to a new SSID or access point is being carried out and the connection itself has been successfully performed, there will be one unique file created in the folder specified above. In Ubuntu Linux Xenial (16.04), the location is stored in ‘/etc/NetworkManager/system-connection’.