IWCTL#
iwctl is the interactive command-line interface for iwd (iNet wireless daemon), common on Arch Linux and minimal Linux setups.
1. Quick Interactive Shell#
Launch the interactive prompt to auto-complete commands and device names:
(Type exit or press Ctrl+D to leave at any time.)
2. Connect to Wi-Fi (Step-by-Step)#
If running directly from your standard terminal prompt without entering the shell:
- Find your Wi-Fi device name (usually
wlan0):
- Turn on the Wi-Fi adapter (if powered off):
1
| iwctl adapter phy0 set-property Powered on
|
- Scan for available networks:
1
| iwctl station wlan0 scan
|
- List scanned networks**:
1
| iwctl station wlan0 get-networks
|
- Connect to a network:
1
| iwctl station wlan0 connect "Your-SSID-Name"
|
You will be prompted for the passphrase if required.
3. Essential Management Commands#
| Action | Command |
|---|
| Check Connection Status | iwctl station wlan0 show |
| Disconnect | iwctl station wlan0 disconnect |
| List Saved Networks | iwctl known-networks list |
| Forget a Saved Network | iwctl known-networks "SSID-Name" forget |
Note: iwctl only handles the Wi-Fi association. If your network doesn’t assign an IP address automatically, ensure a DHCP client like systemd-networkd or dhcpcd is active.