Linux command
wpa_supplicant 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start with config
wpa_supplicant -i [wlan0] -c [/etc/wpa_supplicant.conf]
Run in foreground
wpa_supplicant -i [wlan0] -c [config.conf] -d
Background daemon
wpa_supplicant -i [wlan0] -c [config.conf] -B
Use specific driver
wpa_supplicant -i [wlan0] -c [config.conf] -D [nl80211]
说明
wpa_supplicant is the standard wireless network authentication daemon for Linux systems. It implements WPA, WPA2, and WPA3 security protocols, handling the key negotiation and authentication process required to connect to protected wireless networks. The daemon supports both personal (PSK) and enterprise (802.1X/EAP) authentication methods, and can manage multiple configured networks with automatic selection based on signal strength and priority. Configuration is defined in a config file specifying network SSIDs, security settings, and credentials. On most desktop Linux systems, wpa_supplicant runs as a backend service managed by NetworkManager or systemd-networkd rather than being invoked directly by users.
参数
- -i _IFACE_
- Interface name.
- -c _FILE_
- Config file.
- -B
- Background mode.
- -D _DRIVER_
- Driver backend.
- -d
- Debug output.
- -P _FILE_
- PID file.
FAQ
What is the wpa_supplicant command used for?
wpa_supplicant is the standard wireless network authentication daemon for Linux systems. It implements WPA, WPA2, and WPA3 security protocols, handling the key negotiation and authentication process required to connect to protected wireless networks. The daemon supports both personal (PSK) and enterprise (802.1X/EAP) authentication methods, and can manage multiple configured networks with automatic selection based on signal strength and priority. Configuration is defined in a config file specifying network SSIDs, security settings, and credentials. On most desktop Linux systems, wpa_supplicant runs as a backend service managed by NetworkManager or systemd-networkd rather than being invoked directly by users.
How do I run a basic wpa_supplicant example?
Run `wpa_supplicant -i [wlan0] -c [/etc/wpa_supplicant.conf]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -i _IFACE_ do in wpa_supplicant?
Interface name.