Skip to content

Instantly share code, notes, and snippets.

@geraldvillorente
Created September 11, 2017 03:34
Show Gist options
  • Save geraldvillorente/e350083a7603d1425b247ef301e86606 to your computer and use it in GitHub Desktop.
Save geraldvillorente/e350083a7603d1425b247ef301e86606 to your computer and use it in GitHub Desktop.
How to connect to wifi network via Ubuntu commandline.

To see list of saved connections:

$ nmcli c

To see list of available WiFi

nmcli d wifi list

Or...

sudo iwlist wlan0 scanning

Option 1

To connect:

$ nmcli d connect <WifiInterface>

To disconnect:

$ nmcli d disconnect <WifiInterface>

Option 2:

To connect:

$ nmcli c up <SavedWiFiConn>

To disconnect:

$ nmcli c down <SavedWiFiConn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment