$ nmcli device status
DEVICE TYPE STATE CONNECTION
enp1s0 ethernet connected Wired connection 1
wlp2s0 wifi disconnected --
lo loopback unmanaged --
$ nmcli radio
WIFI-HW WIFI WWAN-HW WWAN
enabled enabled enabled enabled
$ nmcli dev wifi list
SSID MODE CHAN RATE SIGNAL BARS SECURITY
MYSSID Infra 11 54 Mbit/s 100 ▂▄▆█ WPA2
MYSSID Infra 132 54 Mbit/s 100 ▂▄▆█ WPA2
SOMEOTHERSSID Infra 52 54 Mbit/s 49 ▂▄__ WPA2
MYSSID Infra 149 54 Mbit/s 45 ▂▄__ WPA2
MYSSID Infra 11 54 Mbit/s 42 ▂▄__ WPA2
SOMEOTHERSSID Infra 1 54 Mbit/s 27 ▂___ WPA2
$ nmcli device wifi connect <SSID|BSSID>
$ nmcli device wifi connect <SSID|BSSID> password <password>
评论 (0)