Options: -J, --json use JSON output format -n, --noheadings don't print headings -o, --output <list> define which output columns to use --output-all output all columns -r, --raw use the raw output format
-h, --help display this help -V, --version display version
Available output columns: DEVICE kernel device name ID device identifier value TYPE device type name that can be used as identifier TYPE-DESC device type description SOFT status of software block HARD status of hardware block
Commands: help event list [identifier] block identifier unblock identifier toggle identifier
NAME rfkill - tool for enabling and disabling wireless devices
SYNOPSIS rfkill [options] [command] [ID|type ...]
DESCRIPTION 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 --help to 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 Print version and exit. 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 commandid 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.
EXAMPLE rfkill --output ID,TYPE rfkill block all rfkill unblock wlan rfkill block bluetooth uwb wimax wwan gps fm nfc
This manual page was written by Darren Salt <[email protected]> for the Debian project (and may be used by others).
SEE ALSO powertop(8), systemd-rfkill(8), Linux kernel documentation <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/driver-api/rfkill.rst>
REPORTING BUGS For bug reports, use the issue tracker at https://github.com/util-linux/util-linux/issues. AVAILABILITY The rfkill command is part of the util-linux package which can be downloaded from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>.
1 2 3 4
$ rfkill --output-all ID TYPE DEVICE TYPE-DESC SOFT HARD 0 bluetooth hci0 Bluetooth unblocked unblocked 1 wlan phy0 Wireless LAN blocked unblocked