rfkill

tool for enabling and disabling wireless devices

TLDR

List devices

>_ rfkill
copy

Filter by columns

>_ rfkill -o [ID,TYPE,DEVICE]
copy

Block devices by type (e.g. bluetooth, wlan)

>_ rfkill block [bluetooth]
copy

Unblock devices by type (e.g. bluetooth, wlan)

>_ rfkill unblock [wlan]
copy

Output in JSON format

>_ rfkill -J
copy

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.

--help Display help text and exit.

--version Display version information 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 section DESCRIPTION. It is a good idea to check with list command idortype scope is appropriate before setting blockorunblock. Special all type string will match everything. Use of multiple idortype arguments is supported.

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.

EXAMPLES

rfkill --output ID,TYPE
rfkill block all
rfkill unblock wlan
rfkill block bluetooth uwb wimax wwan gps fm nfc

AUTHORS

rfkill was originally written by johannes@ sipsolutions. net Johannes Berg and marcel@ holtmann. org Marcel Holtmann . The code has been later modified by kerolasa@ iki. fi Sami Kerola and kzak@ redhat. com Karel Zak for util-linux project.

This manual page was written by linux@ youmustbejoking. demon. co.uk Darren Salt , for the Debian project (and may be used by others).

AVAILABILITY

The rfkill command is part of the util -linux package and is available from https:// www.kernel.org /pub /linux /utils /util -linux/ Linux Kernel Archive .

SEE ALSO

powertop(8), systemd-rfkill(8), https:// git. kernel. org/ pub/ scm/ linux/ kernel/ git/ torvalds/ linux.git/ tree/ Documentation/ rfkill.txt Linux kernel documentation

Copied to clipboard
free 100$ digital ocean credit