Connect to the internetS from CLI

October 27, 2016

Seems I can never find myself working with a GUI network-manager, they always fail on me. I decided to look for a command line alternative, and found one installed on my fedora system. It’s called nmcli.

Will give your general infos about your network status.

nmcli general status

To tell you if wifi is enabled, you can add on/off to enable/disable:

nmcli radio wifi

List all available networks where we can connect:

nmcli device wifi list

Refresh previous list

nmcli device wifi rescan

Create a new connection to a password protected AP

nmcli device wifi connect <SSID|BSSID> password <password>

More info: https://fedoraproject.org/wiki/Networking/CLI