← 返回命令列表

Linux command

iw 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Scan

iw dev wlan0 scan

Connect

iw dev wlan0 connect SSID

Disconnect

iw dev wlan0 disconnect

Example

iw dev wlan0 link

Example

iw dev

Example

iw phy

Example

iw reg get

说明

iw is the modern Linux wireless configuration tool, replacing iwconfig. It interfaces with cfg80211/nl80211 to configure wireless network interfaces, scan for networks, and manage connections.

参数

dev _interface_
Operate on specific interface
phy _phyN_
Operate on specific physical device
scan
Scan for wireless networks
connect _SSID_
Connect to an open network
disconnect
Disconnect from current network
link
Show current connection status
reg get
Show regulatory domain information
set _parameter_ _value_
Set interface parameters

FAQ

What is the iw command used for?

iw is the modern Linux wireless configuration tool, replacing iwconfig. It interfaces with cfg80211/nl80211 to configure wireless network interfaces, scan for networks, and manage connections.

How do I run a basic iw example?

Run `iw dev wlan0 scan` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does dev _interface_ do in iw?

Operate on specific interface