Connect to Wi-Fi in Ubuntu

Computers2026-06-01command linelinuxserverubuntuwi-fi

1. Make sure Wi-Fi is enabled

nmcli radio wifi

If it says disabled, turn it on:

nmcli radio wifi on

2. Scan for available Wi-Fi networks

nmcli device wifi list

To force a fresh scan:

nmcli device wifi rescan
nmcli device wifi list

3. Connect to a Wi-Fi network

For a normal WPA/WPA2 network:

nmcli device wifi connect "WiFi_Name" password "WiFi_Password"