Ubuntu nmcli

nmcli WIFI Configre

显示wifi接口

1
2
3
4
5
nmcli d 

DEVICE TYPE STATE CONNECTION
...
wlan0 wifi disconnected --

set wifi on

1
nmcli r wifi on

显示wili列表

1
2
3
4
5
nmcli d wifi list

* SSID MODE CHAN RATE SIGNAL BARS SECURITY
...
my_wifi Infra 5 54 Mbit/s 89 ▂▄▆█ WPA2

连接wifi

1
nmcli d wifi connect my_wifi password <password>

参考