范例1: 显示频道信息
snail@snail-laptop:~$ iwlist wlan0 frequen //显示频道信息
wlan0 13 channels in total; available frequencies :
Channel 01 : 2.412 GHz
Channel 02 : 2.417 GHz
Channel 03 : 2.422 GHz
Channel 04 : 2.427 GHz
Channel 05 : 2.432 GHz
Channel 06 : 2.437 GHz
Channel 07 : 2.442 GHz
Channel 08 : 2.447 GHz
Channel 09 : 2.452 GHz
Channel 10 : 2.457 GHz
Channel 11 : 2.462 GHz
Channel 12 : 2.467 GHz
Channel 13 : 2.472 GHz
Current Frequency:2.412 GHz (Channel 1)
snail@snail-laptop:~$
范例2:搜索热点
snail@snail-laptop:~$ iwlist wlan0 scanning //搜索热点
iwlist scanning
lo Interface doesn't support scanning.
eth0 Interface doesn't support scanning.
wlan0 Scan completed :
Cell 01 - Address: E0:05:C5:B6:53:A0
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=41/70 Signal level=-69 dBm
Encryption key:off
ESSID:"Web:192.168.1.2"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000000342c72184
Extra: Last beacon: 5220ms ago
IE: Unknown: 000F5765623A3139322E3136382E312E32
IE: Unknown: 010882848B0C12961824
IE: Unknown: 030101
IE: Unknown: 0706434E20010D14
IE: Unknown: 200100
IE: Unknown: 2A0100
IE: Unknown: 32043048606C
IE: Unknown: DD180050F2020101820003A4000027A4000042435E0062322F00
Cell 02 - Address: 00:74:04:EE:45:83
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=17/70 Signal level=-93 dBm
Encryption key:off
ESSID:"AR7WRD"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 22 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=000000014e9071e2
Extra: Last beacon: 5156ms ago
IE: Unknown: 0006415237575244
IE: Unknown: 010582848B962C
IE: Unknown: 030101
IE: Unknown: 050401030000
IE: Unknown: 2A0104
IE: Unknown: 32080C1218243048606C
Cell 03 - Address: 00:15:EB:61:3C:9C
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=23/70 Signal level=-87 dBm
Encryption key:on
ESSID:"ZTE-613C9C"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=00000001a74dcfdf
Extra: Last beacon: 12800ms ago
IE: Unknown: 000A5A54452D363133433943
IE: Unknown: 010482848B96
IE: Unknown: 030106
IE: Unknown: 0706434E20010D14
IE: Unknown: 2A0100
IE: Unknown: 32080C1218243048606C
Cell 04 - Address: D8:5D:4C:65:2E:A4
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=29/70 Signal level=-81 dBm
Encryption key:on
ESSID:"xE9xC5xEDxC8"
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
12 Mb/s; 24 Mb/s; 36 Mb/s
Bit Rates:9 Mb/s; 18 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=0000003af3b62181
Extra: Last beacon: 12460ms ago
IE: Unknown: 0004E9C5EDC8
IE: Unknown: 010882848B960C183048
IE: Unknown: 030106
IE: Unknown: 2A0100
IE: Unknown: 32041224606C
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : TKIP CCMP
Authentication Suites (1) : PSK
Preauthentication Supported
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : TKIP CCMP
Authentication Suites (1) : PSK