rfkill8
Tool for enabling and disabling wireless devices
Usage
rfkill [options]
[command]
[{ID | type ...}]
Overview
rfkill lists, enabling and disabling wireless devices.
The command "list" output format is deprecated and maintained for backward compatibility only. The new output format is the default when no command is specified or when the option --output is used.
The default output is subject to change. So whenever possible, you should avoid using default outputs in your scripts. Always explicitly define expected columns by using the --output option together with a columns list in environments where a stable output is required.
Options
-
-J, --json -
Use JSON output format.
-
-n, --noheadings -
Do not print a header line.
-
-o, --output -
Specify which output columns to print. Use
--helpto get a list of available columns.
-
--output-all -
Output all available columns.
-
-r, --raw -
Use the raw output format.
-
-h, --help -
Display help text and exit.
-
-V, --version -
Display version and exit.
Environment
LIBSMARTCOLS_DEBUG=all
enables libsmartcols debug output.
LIBSMARTCOLS_DEBUG_PADDING=on
use visible padding characters.
LIBSMARTCOLS_JSON=compact|lines
Controls JSON output format when using --json. Supported values are compact for JSON output with minimal whitespace, and lines for JSON Lines format (one JSON object per line). If unset or set to any other value, pretty-printed JSON is used.
Commands
help
Display help text and exit.
event
Listen for rfkill events and display them on stdout.
list [id|type ...]
List the current state of all available devices. The command output format is deprecated, see the DESCRIPTION section. It is a good idea to check with list command id or type scope is appropriate before setting block or unblock. Special all type string will match everything. Use of multiple ID or type arguments is supported. Possible types are all, {wlan | wifi}, bluetooth, {uwb | ultrawideband}, wimax, wwan, gps, fm, nfc.
block id|type [...]
Disable the corresponding device.
unblock id|type [...]
Enable the corresponding device. If the device is hard-blocked, for example via a hardware switch, it will remain unavailable though it is now soft-unblocked.
toggle id|type [...]
Enable or disable the corresponding device.
Examples
rfkill --output ID,TYPE rfkill block all rfkill unblock wlan rfkill block bluetooth uwb wimax wwan gps fm nfc
Releases
9 releases since Debian 6.0 (Squeeze); the text changed 6 times.
--help since Debian 10 (Buster);
--json since Debian 10 (Buster);
--noheadings since Debian 10 (Buster);
--output since Debian 10 (Buster);
--output-all since Debian 10 (Buster);
--raw since Debian 10 (Buster);
-J since Debian 10 (Buster);
-V since Debian 12 (Bookworm);
-h since Debian 12 (Bookworm);
-n since Debian 10 (Buster);
-o since Debian 10 (Buster);
-r since Debian 10 (Buster).