Connect To Wireless Access Points Using Terminal

Connect To Wireless Access Points Using Terminal

You might have noticed while connecting to any wifi network that, once you provide the password for a access point you don’t need to enter the same password again to connect to that particular network. Its because your computer stores the password you entered the first time while connecting and uses the same password whenever you try connecting it again, unless the password is being modified.

So to be able to connect to these stored wireless networks we need a tool called nmcli. The command‐line tool nmcli can be used by both users and scripts for controlling NetworkManager. The basic format of a command is :

nmcli is a command line tool for controlling NetworkManager and reporting network status. It can be utilised as a replacement for graphical clients. nmcli is used to creat, display, edit, activate and deactivate network connections, as well as control and display network device status. So to activate wireless connection, type :

Where, co is short form for connection.

Connect To Wireless Access Points Using Terminal

The above command will list out all the network connections that you have ever been connected to. It will list the Name, its Universal Unique Identifer(UUID), Type of wireless connection and the Device as in Interface name. Now from those list of Names, you need to copy the UUID of the wifi network you want to connect and type the following :

Paste the UUID value in place of UUID in the above command. Once you paste the UUID and hit enter, it will then connect to that wireless network and prompt connection activated when connected successfully. You can double check and verify by typing :

This command outputs only the established connection, where –a stands for –active.

Another way is to check the status of your wireless device, weather it is connected or not. so type :


There are so many things you can do with this tool apart from just connecting to a wifi network. If you want to check the available wifi access points then type :


For more useful commands and utilisation go to its help page or man page by typing :


This tool is really helpful if your using tiling windows manager but off course you can connect directly using graphical interface too.

Stay tuned for more intresting tools and topics,