This guide explains how to connect to WiFi in Arch Linux entirely from the terminal, especially useful on fresh installations, headless setups, or minimal environments.
| Tool | Availability | Recommended For |
|---|---|---|
iwctl |
Default on Arch ISO | Simple connections (iwd users) |
nmcli |
NetworkManager | Full-feature WiFi & config |
wifi-menu |
netctl (deprecated) | Legacy, less preferred |
This is the recommended method during Arch installation or for minimal setups without NetworkManager.
-
Run
iwctl:iwctl
-
Inside the shell, find your wireless device:
device list
-
Start a scan:
station wlan0 scan
-
Then list networks:
station wlan0 get-networks
(Replace
wlan0with your actual wireless interface) -
Connect to WiFi:
station wlan0 connect YourNetworkName
You'll be prompted for the WiFi password.
-
Exit:
exit
Test with:
ping archlinux.orgRecommended post-installation if you’re using a desktop environment or want persistent WiFi setup.
sudo pacman -S networkmanager
sudo systemctl enable NetworkManager
sudo systemctl start NetworkManager-
See your available interfaces:
nmcli device
-
Scan for networks:
nmcli device wifi rescan nmcli device wifi list
-
Connect:
nmcli device wifi connect "<SSID>" password "<password>"
You’re connected! 🎉
Once connected, it will auto-connect every reboot unless disabled.
You can use wifi-menu if you're using netctl but it's deprecated.
Use only if nothing else is available.
-
Install
dialog:sudo pacman -S dialog
-
Use
wifi-menu:sudo wifi-menu
-
Select your network and enter the password.
-
Enable auto-connect (Optional):
sudo netctl enable <profile_name>
This method is outdated and not recommended for long-term usage.
Try pinging a website:
ping archlinux.orgPress Ctrl + C to stop the ping.
- Ensure services are running:
sudo systemctl start NetworkManager
sudo systemctl enable NetworkManager- Reboot if needed.
Check your interface list:
ip linkNo wlan0 or similar?
- Run:
lspci | grep -i network- Or for USB adapter:
lsusbMake sure the correct drivers are installed.
iwctl
device list
station wlan0 scan
station wlan0 get-networks
station wlan0 connect YourSSID