iwconfig
TLDR
Show all interfaces
$ iwconfig
Show specific interface$ iwconfig wlan0
Set ESSID$ iwconfig wlan0 essid network_name
Set mode$ iwconfig wlan0 mode Managed
SYNOPSIS
iwconfig [interface] [parameter value...]
DESCRIPTION
iwconfig configures and displays parameters of wireless network interfaces. It is the wireless equivalent of ifconfig, providing access to wireless-specific settings like ESSID, mode, channel, and encryption.
PARAMETERS
essid name
Set the network name (SSID)mode mode
Set operating mode (Ad-Hoc, Managed, Master, Monitor, Auto)freq frequency
Set operating frequencychannel channel
Set operating channelap address
Force association with specific access pointrate rate
Set bit ratetxpower power
Set transmit powersens threshold
Set sensitivity thresholdkey key
Set WEP encryption key (deprecated)
CAVEATS
iwconfig is deprecated in favor of iw. WEP encryption is insecure and should not be used. For WPA/WPA2, use wpa_supplicant instead.
HISTORY
iwconfig was part of the wireless-tools package, now largely superseded by iw and wpa_supplicant.
SEE ALSO
iw(8), iwlist(8), wpa_supplicant(8)


