← 返回命令列表

Linux command

rfkill 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List

rfkill

Example

rfkill -o ID,TYPE,DEVICE

Block

rfkill block wifi

Unblock

rfkill unblock bluetooth

Example

rfkill -J

说明

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.

参数

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

FAQ

What is the rfkill command used for?

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.

How do I run a basic rfkill example?

Run `rfkill` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does list do in rfkill?

List all devices (default action)