Skip to content

Instantly share code, notes, and snippets.

@surajnarwade
Last active February 10, 2023 08:48
Show Gist options
  • Save surajnarwade/5a7762b7936bde427dfd5b8b8b2a0764 to your computer and use it in GitHub Desktop.
Save surajnarwade/5a7762b7936bde427dfd5b8b8b2a0764 to your computer and use it in GitHub Desktop.
Control wifi using nmcli

WI-FI using nmcli

  • Check wifi status
nmcli radio wifi
  • Turn on the wifi
nmcli radio wifi on
  • Turn off the wifi
nmcli radio wifi off
  • List available wifi access points
nmcli device wifi list
  • Refresh the access point list
nmcli device wifi rescan
  • Connect to wifi
nmcli device wifi connect <SSID>
  • Connect to password protected access point
nmcli device wifi connect <SSID> password <password>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment