Linux Commands Helper
💬 Your AI-powered Linux assistant
iwconfig Command - Configure Wireless Network Interfaces
The iwconfig command is used to configure wireless network interfaces. It allows you to set parameters such as SSID, mode, frequency, and encryption for Wi-Fi devices.
Syntax
iwconfig [interface] [options]
Examples
iwconfig wlan0
Show wireless settings for wlan0.
sudo iwconfig wlan0 essid "MyWiFi"
Set the SSID for wlan0.
sudo iwconfig wlan0 key s:password
Set the WEP key for wlan0.
Notes
- iwconfig is deprecated on many modern systems; use
iw
ornmcli
instead. - Requires root privileges for most operations.
- Only works with wireless interfaces supported by the kernel.