Daily Dairy

Connect to Wifi from command line in Linux.

nmcli is a tool that allows NetworkManager management from command line.

Get Wifi status:

$ nmcli radio wifi

Turn wifi on or off:

$ nmcli radio wifi on|off

List available access points(AP) to connect to:

$ nmcli device wifi list

Refresh previous list:

$ nmcli device wifi rescan

Create a new connection to an open AP:

$ nmcli device wifi connect SSID

Create a new connection to a password protected AP:

$ nmcli device wifi connect SSID password *password*

Thanks. 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s