$linuxjunkies
>

rfkill(1)

Show and control wireless device power states (WiFi, Bluetooth, cellular).

UbuntuDebianFedoraArch

Synopsis

rfkill [OPTION] [COMMAND] [DEVICE]

Description

rfkill is a utility for enabling and disabling wireless devices on Linux systems. It controls the radio frequency state of wireless interfaces like WiFi, Bluetooth, and cellular modems through software and hardware kill switches.

The command can list all wireless devices with their current state, or toggle devices on and off. Some devices have both software and hardware kill switches; rfkill typically controls the software switch while respecting hardware switch state.

Common options

FlagWhat it does
listShow all wireless devices and their current state (default command)
block DEVICE|TYPEDisable (turn off) a device by name or type (wifi, bluetooth, cellular, etc.)
unblock DEVICE|TYPEEnable (turn on) a device by name or type
toggle DEVICE|TYPESwitch device state (on to off or off to on)
-a, --allOperate on all devices of specified type
-h, --helpDisplay help message and exit
-v, --versionShow version information
-n, --noheadingsOutput list without column headers

Examples

Display all wireless devices and whether they are blocked or unblocked

rfkill list

Disable all WiFi devices (turn off the software kill switch)

rfkill block wifi

Enable all Bluetooth devices

rfkill unblock bluetooth

Toggle the state of the wireless device with ID 0

rfkill toggle 0

Disable all wireless devices on the system

rfkill block all

Show only WiFi devices and their current state

rfkill list wifi

Re-enable all wireless devices (may require root or sudo)

sudo rfkill unblock all

Related commands