Skip to content

Cli (nmcli) connect wifi

ref: https://blog.csdn.net/kdongyi/article/details/84557708

sudo apt-get install nmcli
# 查看设备
sudo nmcli dev

# 开启 wifi
sudo nmcli r wifi on

# 扫描 wifi
sudo nmcli dev wifi

sudo nmcli dev wifi connect "wifi名" password "密码"