1、安装nmcli
sudo apt-get install nmcli
2、查看网络设备
sudo nmcli dev
3、开启wifi
sudo nmcli r wifi on
4、扫描wifi
sudo nmcli dev wifi
5、连接wifi
sudo nmcli dev wifi connect "wifi名" password "密码"
sudo apt-get install nmcli
2、查看网络设备
sudo nmcli dev
3、开启wifi
sudo nmcli r wifi on
4、扫描wifi
sudo nmcli dev wifi
5、连接wifi
sudo nmcli dev wifi connect "wifi名" password "密码"