]>
Commit | Line | Data |
---|---|---|
a60cbb52 | 1 | .\" -*- nroff -*- |
11dc93b7 | 2 | .TH RFKILL "8" "2017-07-06" "util-linux" "System Administration" |
b10e0a4a JB |
3 | .SH NAME |
4 | rfkill \- tool for enabling and disabling wireless devices | |
5 | .SH SYNOPSIS | |
6 | .B rfkill | |
7d2a9960 KZ |
7 | .RI [ options ] |
8 | .RI [ command ] | |
9 | .RI [ id|type \ ...] | |
18d3a03f KZ |
10 | |
11 | .SH DESCRIPTION | |
12 | .B rfkill | |
13 | lists, enabling and disabling wireless devices. | |
14 | ||
7d2a9960 KZ |
15 | The command "list" output format is deprecated and maintained for backward |
16 | compatibility only. The new output format is the default when no command is | |
17 | specified or when the option \fB\-\-output\fR is used. | |
18 | ||
18d3a03f KZ |
19 | The default output is subject to change. So whenever possible, you should |
20 | avoid using default outputs in your scripts. Always explicitly define expected | |
21 | columns by using the \fB\-\-output\fR option together with a columns list in | |
22 | environments where a stable output is required. | |
23 | ||
7d2a9960 | 24 | |
b10e0a4a JB |
25 | .SH OPTIONS |
26 | .TP | |
b3849c66 SK |
27 | \fB\-J\fR, \fB\-\-json\fR |
28 | Use JSON output format. | |
29 | .TP | |
30 | \fB\-n\fR, \fB\-\-noheadings\fR | |
31 | Do not print a header line. | |
32 | .TP | |
33 | \fB\-o\fR, \fB\-\-output\fR | |
34 | Specify which output columns to print. Use \-\-help to get a list of | |
35 | available columns. | |
36 | .TP | |
4dfd172d SK |
37 | .B \-\-output\-all |
38 | Output all available columns. | |
39 | .TP | |
b3849c66 SK |
40 | \fB\-r\fR, \fB\-\-raw\fR |
41 | Use the raw output format. | |
42 | .TP | |
a60cbb52 SK |
43 | .B \-\-help |
44 | Display help text and exit. | |
45 | .TP | |
b10e0a4a | 46 | .B \-\-version |
a60cbb52 | 47 | Display version information and exit. |
b10e0a4a JB |
48 | .SH COMMANDS |
49 | .TP | |
50 | .B help | |
a60cbb52 | 51 | Display help text and exit. |
b10e0a4a JB |
52 | .TP |
53 | .B event | |
54 | Listen for rfkill events and display them on stdout. | |
55 | .TP | |
4f892d77 | 56 | \fBlist \fR[\fIid\fR|\fItype\fR ...] |
7d2a9960 KZ |
57 | List the current state of all available devices. The command output format is deprecated, see the section DESCRIPTION. |
58 | It is a good idea to check with | |
b3849c66 SK |
59 | .B list |
60 | command | |
4f892d77 | 61 | .IR id " or " type |
b3849c66 SK |
62 | scope is appropriate before setting |
63 | .BR block " or " unblock . | |
64 | Special | |
4f892d77 SK |
65 | .I all |
66 | type string will match everything. Use of multiple | |
67 | .IR id " or " type | |
68 | arguments is supported. | |
b10e0a4a | 69 | .TP |
4f892d77 | 70 | \fBblock \fBid\fR|\fBtype\fR [...] |
a60cbb52 | 71 | Disable the corresponding device. |
b10e0a4a | 72 | .TP |
4f892d77 | 73 | \fBunblock \fBid\fR|\fBtype\fR [...] |
a60cbb52 SK |
74 | Enable the corresponding device. If the device is hard\-blocked, for example |
75 | via a hardware switch, it will remain unavailable though it is now | |
76 | soft\-unblocked. | |
a60cbb52 | 77 | .SH EXAMPLES |
7d2a9960 | 78 | rfkill --output ID,TYPE |
a60cbb52 SK |
79 | .br |
80 | rfkill block all | |
81 | .br | |
82 | rfkill unblock wlan | |
4f892d77 SK |
83 | .br |
84 | rfkill block bluetooth uwb wimax wwan gps fm nfc | |
b10e0a4a | 85 | .SH AUTHORS |
a60cbb52 SK |
86 | .B rfkill |
87 | was originally written by | |
88 | .MT johannes@\:sipsolutions.\:net | |
89 | Johannes Berg | |
90 | .ME | |
91 | and | |
92 | .MT marcel@\:holtmann.\:org | |
93 | Marcel Holtmann | |
94 | .ME . | |
7cd784d0 | 95 | The code has been later modified by |
f4949fcc KZ |
96 | .MT kerolasa@\:iki.\:fi |
97 | Sami Kerola | |
98 | .ME | |
7d2a9960 KZ |
99 | and |
100 | .MT kzak@\:redhat.\:com | |
101 | Karel Zak | |
102 | .ME | |
f4949fcc | 103 | for util-linux project. |
b10e0a4a | 104 | .PP |
a60cbb52 SK |
105 | This manual page was written by |
106 | .MT linux@\:youmustbejoking.\:demon.\:co.uk | |
107 | Darren Salt | |
108 | .ME , | |
b10e0a4a | 109 | for the Debian project (and may be used by others). |
a60cbb52 SK |
110 | .SH "SEE ALSO" |
111 | .BR powertop (8), | |
11dc93b7 | 112 | .BR systemd-rfkill (8), |
5fdb0866 | 113 | .UR https://\:git.\:kernel.\:org/\:pub/\:scm/\:linux/\:kernel/\:git/\:torvalds/\:linux.git/\:tree/\:Documentation/\:driver-api/\:rfkill.rst |
a60cbb52 SK |
114 | Linux kernel documentation |
115 | .UE | |
116 | .SH AVAILABILITY | |
117 | The rfkill command is part of the util\-linux package and is available from | |
118 | .UR https://\:www.kernel.org\:/pub\:/linux\:/utils\:/util\-linux/ | |
119 | Linux Kernel Archive | |
120 | .UE . |