Using comand nmcli:
rock@rock-5b:~$ nmcli dev wifi
IN-USE BSSID SSID MODE CHAN RATE SIGNAL BARS SECURITY
7A:AC:B9:2E:4F:29 My network Infra 36 270 Mbit/s 89 ▂▄▆█ WPA2
74:AC:B9:2D:4F:29 My network2_2G Infra 6 130 Mbit/s 85 ▂▄▆█ WPA2
CC:32:E5:AE:E6:84 TP-Link_E684 Infra 1 270 Mbit/s 57 ▂▄▆_ WPA2
04:5E:A4:F6:23:38 k67 Infra 11 270 Mbit/s 25 ▂___ WPA1 WPA2
4C:D1:A1:07:5F:6E SATORI Infra 1 270 Mbit/s 17 ▂___ WPA1 WPA2
6C:5A:B0:F4:17:4A TP-Link_174A Infra 2 270 Mbit/s 15 ▂___ WPA1 WPA2
rock@rock-5b:~$ nmcli dev wifi con “My network” password “qwerty”
Error: No network with SSID ‘My network’ found.
rock@rock-5b:~$ nmcli dev status
DEVICE TYPE STATE CONNECTION
enP4p65s0 ethernet connected Wired connection 1
wlan0 wifi disconnected –
lo loopback unmanaged –
p2p-dev-wlan0 wifi-p2p unmanaged –
rock@rock-5b:~$ nmcli dev con show
Error: Device ‘show’ not found.
rock@rock-5b:~$ nmcli con show
NAME UUID TYPE DEVICE
Wired connection 1 19bb832d-630d-3fd8-bcf1-764282f1232a ethernet enP4p65s0
moto g200 5G Network 9089888d-320d-4f3e-9e0a-43c1f82af696 bluetooth –
rock@rock-5b:~$ nmcli --ask device connect “My network”
Error: Device ‘My network’ not found.
How to run wlan0 for Wi-Fi?