LinuxCommandLibrary

rfkill

TLDR

List devices

$ rfkill
copy
Filter columns
$ rfkill -o ID,TYPE,DEVICE
copy
Block device type
$ rfkill block wifi
copy
Unblock device type
$ rfkill unblock bluetooth
copy
Output JSON
$ rfkill -J
copy

SYNOPSIS

rfkill [OPTIONS] [command] [identifier]

DESCRIPTION

rfkill enables and disables wireless communication devices (WiFi, Bluetooth, GPS, NFC, etc.) through the kernel's rfkill subsystem. It can soft-block devices in software while respecting hardware kill switches.

PARAMETERS

list

List all devices (default action)
block type|id
Disable specified device type or ID
unblock type|id
Enable specified device type or ID
toggle type|id
Toggle the state of device
-o, --output columns
Specify output columns
-J, --json
Output in JSON format
-n, --noheadings
Don't print column headers

CAVEATS

Hardware kill switches cannot be overridden by software. Blocking may affect multiple devices if they share the same rfkill switch. Some devices may require reboot to fully reset.

HISTORY

rfkill is part of util-linux, providing control over the kernel's rfkill subsystem for wireless devices.

SEE ALSO

iw(8), bluetoothctl(1)

Copied to clipboard