Linux uses the command line to realize the method of connecting to wifi

First, we need to install nmcli, enter the command to install successfully:

sudo apt-get install nmcli

Second, enter the command to see which network devices our hardware is:

sudo nmcli dev

Again, we need to turn on the wifi of the corresponding device:

sudo nmcli r wifi on

Then, we scan which wifis are available in the current environment:

sudo nmcli dev wifi

Finally, enter the command to connect to wifi:

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

View connected

nmcli c 

delete unused connections

nmcli c delete OpenWrt

Guess you like

Origin blog.csdn.net/u014492512/article/details/128867100