Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to connect wifi through command under Linux

Shulou Source: shulou.com Published: 2022-06-01 12:51:40 10月02日 Update

This article mainly explains "how to connect wifi through commands under Linux". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to connect wifi through commands under Linux.

The user enters the wifi name and password on the web side, and the client can connect through the information sent by the server.

Connection: nmcli device wifi connect wifiname password wifipasswd deletion: nmcli con del wifiname start: nmcli connection up wifiname off: nmcli connection down wifiname

If wifi is hidden, then the above method won't work. Here's what I'm going to add:

According to the wifi name and wifi's device (INTERFACE), add: nmcli c add type wifi con-name "NAME" ifname "INTERFACE" ssid "SSID" where both NAME and SSID write the wifi name, and INTERFACE is the DEVICE of wifi (can be viewed by nmcli device status)

Set the connection encryption method and password of wifi:

Nmcli c modify "NAME" wifi-sec.key-mgmt wpa-psk wifi-sec.psk "PASSWORD" start wifi:nmcli c up "NAME" close wifi:nmcli c down "NAME" Thank you for reading, above is the content of "how to connect wifi through commands under Linux". After the study of this article, I believe you have a deeper understanding of how to connect wifi through commands under Linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Commands learning content name password that is information can be passed through name client client ideas situations articles methods methods more users knowledge knowledge points Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB vpn Docker OPPO Reno Shulou Information