Forrest logo
back to the wpa_cli tool

wpa_cli:tldr:00c5f

wpa_cli: Save config.
$ wpa_cli save_config
try on your machine

The "wpa_cli save_config" command is used to save the current WiFi network configuration to a file.

wpa_cli is a command-line tool used to interact with the wpa_supplicant, a WiFi client software for Linux-based systems. wpa_supplicant manages the connections to WiFi networks and handles the authentication and encryption protocols.

When you execute the "wpa_cli save_config" command, it triggers the wpa_supplicant to save the current network configuration details, including the network SSID, password, and any other relevant settings, into a configuration file. This configuration file is typically located at "/etc/wpa_supplicant/wpa_supplicant.conf" in most Linux distributions.

Saving the configuration is useful in scenarios where you have manually configured WiFi connections using the wpa_cli command or have made changes to the network settings. By saving the configuration, you can ensure that the changes you made persist across system reboots or reconnects to the network.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the wpa_cli tool