The objective of this guide is to show how to enable and disable the WiFi on Kali Linux. This can be done either by GUI or command line, and we’ll be showing the step by step instructions for both methods in this tutorial. This will be helpful if you’re having trouble connecting to a wireless router, or you plan to do some WiFi scanning and cracking with Aircrack-ng, for example.
In this tutorial you will learn:
- How to enable and disable WiFi via GUI and command line on Kali Linux
|Category||Requirements, Conventions or Software Version Used|
|Other||Privileged access to your Linux system as root or via the
|Conventions||# – requires given linux commands to be executed with root privileges either directly as a root user or by use of
$ – requires given linux commands to be executed as a regular non-privileged user
Enable or disable WiFi via GUI
These steps assume you’re using Xfce, the default desktop environment for Kali. If you’re using KDE, GNOME, or some other GUI, the instructions should still be very similar.
- To enable or disable the WiFi, right click the network icon in the corner, and click “Enable WiFi” or “Disable WiFi.”
- When the WiFi adapter is enabled, single click the network icon to select a WiFi network to connect to.
- Type the network password and click “connect” to complete the process.
- Once connected, click “Connection Information” in the network icon menu to see details about your connection.
Enable or disable WiFi via command line
- To see the name of your WiFi adapter, as well as connection information (assuming you are already connected to a WiFi network), open a terminal and execute the
$ ip a
- In our example, the name of our WiFi connection is
wlan0. To disable the WiFi connection, type the following command.
$ sudo ip link set dev wlan0 down
- To enable the WiFi, type the following command to put the adapter back up. Notice we also execute the
ip acommand afterwards, to verify whether the connection is up or down.
$ sudo ip link set dev wlan0 up
- If you don’t want to use the GUI to connect to a WiFi network, you can connect to the WiFi from command line.
In this tutorial, we saw how to enable and disable the WiFi via GUI and command line in Kali Linux. This serves as a troubleshooting method when your system won’t connect to a WiFi network or you have no internet access. The command line method is especially useful on a headless server. For further help, see our guide on testing internet connection on Linux.