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