procps/sysctl.8
Jan Görig 039e2bb7df Manual pages fixes
Taken from Debian with small changes added

Authors: Craig Small <csmall@debian.org>, Brendan O'Dea <bod@debian.org>
2011-02-23 09:17:54 +01:00

118 lines
2.6 KiB
Groff

.\" Copyright 1999, George Staikos (staikos@0wned.org)
.\" This file may be used subject to the terms and conditions of the
.\" GNU General Public License Version 2, or any later version
.\" at your option, as published by the Free Software Foundation.
.\" This program is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details."
.TH SYSCTL 8 "21 Sep 1999" "" ""
.SH NAME
sysctl \- configure kernel parameters at runtime
.SH SYNOPSIS
.B sysctl
.RB [ \-n ]
.RB [ \-e ]
.I variable
\&...
.br
.B sysctl
.RB [ \-n ]
.RB [ \-e ]
.RB [ \-q ]
.B \-w
.IR variable = value
\&...
.br
.B sysctl
.RB [ \-n ]
.RB [ \-e ]
.RB [ \-q ]
.B \-p
.RI [ filename ]
.br
.B sysctl
.RB [ \-n ]
.RB [ \-e ]
.B \-a
.br
.B sysctl
.RB [ \-n ]
.RB [ \-e ]
.B \-A
.SH DESCRIPTION
.B sysctl
is used to modify kernel parameters at runtime. The parameters available
are those listed under /proc/sys/. Procfs is required for
.B sysctl
support in Linux. You can use
.B sysctl
to both read and write sysctl data.
.SH PARAMETERS
.TP
.I variable
The name of a key to read from. An example is kernel.ostype. The '/'
separator is also accepted in place of a '.'.
.TP
.IR variable = value
To set a key, use the form
.IR variable = value
where
.I variable
is the key and
.I value
is the value to set it to. If the value contains quotes or characters
which are parsed by the shell, you may need to enclose the value in double
quotes. This requires the
.B \-w
parameter to use.
.TP
.B \-n
Use this option to disable printing of the key name when printing values.
.TP
.B \-e
Use this option to ignore errors about unknown keys.
.TP
.B \-N
Use this option to only print the names. It may be useful with shells that
have programmable completion.
.TP
.B \-q
Use this option to not display the values set to stdout.
.TP
.B \-w
Use this option when you want to change a sysctl setting.
.TP
.B \-p
Load in sysctl settings from the file specified or /etc/sysctl.conf if none given.
Specifying \- as filename means reading data from standard input.
.TP
.B \-a
Display all values currently available.
.TP
.B \-A
Display all values currently available in table form.
.SH EXAMPLES
/sbin/sysctl \-a
.br
/sbin/sysctl \-n kernel.hostname
.br
/sbin/sysctl \-w kernel.domainname="example.com"
.br
/sbin/sysctl \-p /etc/sysctl.conf
.SH FILES
.I /proc/sys
.br
.I /etc/sysctl.conf
.SH SEE ALSO
.BR sysctl.conf (5)
.SH BUGS
The
.B \-A
parameter behaves just as
.B \-a
does.
.SH AUTHOR
George Staikos, <staikos@0wned.org>