2002-02-02 04:17:29 +05:30
|
|
|
.\" 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
|
2011-02-23 13:47:54 +05:30
|
|
|
.B sysctl
|
|
|
|
.RB [ \-n ]
|
|
|
|
.RB [ \-e ]
|
|
|
|
.I variable
|
|
|
|
\&...
|
2002-02-02 04:17:29 +05:30
|
|
|
.br
|
2011-02-23 13:47:54 +05:30
|
|
|
.B sysctl
|
|
|
|
.RB [ \-n ]
|
|
|
|
.RB [ \-e ]
|
|
|
|
.RB [ \-q ]
|
|
|
|
.B \-w
|
|
|
|
.IR variable = value
|
|
|
|
\&...
|
2002-02-02 04:17:29 +05:30
|
|
|
.br
|
2011-02-23 13:47:54 +05:30
|
|
|
.B sysctl
|
|
|
|
.RB [ \-n ]
|
|
|
|
.RB [ \-e ]
|
|
|
|
.RB [ \-q ]
|
|
|
|
.B \-p
|
|
|
|
.RI [ filename ]
|
2002-02-02 04:17:29 +05:30
|
|
|
.br
|
2011-02-23 13:47:54 +05:30
|
|
|
.B sysctl
|
|
|
|
.RB [ \-n ]
|
|
|
|
.RB [ \-e ]
|
|
|
|
.B \-a
|
2002-02-02 04:17:29 +05:30
|
|
|
.br
|
2011-02-23 13:47:54 +05:30
|
|
|
.B sysctl
|
|
|
|
.RB [ \-n ]
|
|
|
|
.RB [ \-e ]
|
|
|
|
.B \-A
|
2002-02-02 04:17:29 +05:30
|
|
|
.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
|
2011-02-23 13:47:54 +05:30
|
|
|
.B sysctl
|
2002-02-02 04:17:29 +05:30
|
|
|
support in Linux. You can use
|
2011-02-23 13:47:54 +05:30
|
|
|
.B sysctl
|
2002-02-02 04:17:29 +05:30
|
|
|
to both read and write sysctl data.
|
|
|
|
.SH PARAMETERS
|
|
|
|
.TP
|
2011-02-23 13:47:54 +05:30
|
|
|
.I variable
|
2002-02-02 04:17:29 +05:30
|
|
|
The name of a key to read from. An example is kernel.ostype. The '/'
|
|
|
|
separator is also accepted in place of a '.'.
|
|
|
|
.TP
|
2011-02-23 13:47:54 +05:30
|
|
|
.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
|
2002-02-02 04:17:29 +05:30
|
|
|
which are parsed by the shell, you may need to enclose the value in double
|
2011-02-23 13:47:54 +05:30
|
|
|
quotes. This requires the
|
|
|
|
.B \-w
|
|
|
|
parameter to use.
|
2002-02-02 04:17:29 +05:30
|
|
|
.TP
|
2011-02-23 13:47:54 +05:30
|
|
|
.B \-n
|
2002-02-02 04:17:29 +05:30
|
|
|
Use this option to disable printing of the key name when printing values.
|
|
|
|
.TP
|
2011-02-23 13:47:54 +05:30
|
|
|
.B \-e
|
2002-12-12 04:25:42 +05:30
|
|
|
Use this option to ignore errors about unknown keys.
|
|
|
|
.TP
|
2011-02-23 13:47:54 +05:30
|
|
|
.B \-N
|
2004-07-15 20:52:23 +05:30
|
|
|
Use this option to only print the names. It may be useful with shells that
|
|
|
|
have programmable completion.
|
|
|
|
.TP
|
2011-02-23 13:47:54 +05:30
|
|
|
.B \-q
|
2004-07-15 10:14:42 +05:30
|
|
|
Use this option to not display the values set to stdout.
|
|
|
|
.TP
|
2011-02-23 13:47:54 +05:30
|
|
|
.B \-w
|
2002-02-02 04:17:29 +05:30
|
|
|
Use this option when you want to change a sysctl setting.
|
|
|
|
.TP
|
2011-02-23 13:47:54 +05:30
|
|
|
.B \-p
|
2002-02-02 04:17:29 +05:30
|
|
|
Load in sysctl settings from the file specified or /etc/sysctl.conf if none given.
|
2006-06-25 02:47:51 +05:30
|
|
|
Specifying \- as filename means reading data from standard input.
|
2002-02-02 04:17:29 +05:30
|
|
|
.TP
|
2011-02-23 13:47:54 +05:30
|
|
|
.B \-a
|
2002-02-02 04:17:29 +05:30
|
|
|
Display all values currently available.
|
|
|
|
.TP
|
2011-02-23 13:47:54 +05:30
|
|
|
.B \-A
|
2002-02-02 04:17:29 +05:30
|
|
|
Display all values currently available in table form.
|
|
|
|
.SH EXAMPLES
|
2011-02-23 13:47:54 +05:30
|
|
|
/sbin/sysctl \-a
|
|
|
|
.br
|
|
|
|
/sbin/sysctl \-n kernel.hostname
|
|
|
|
.br
|
|
|
|
/sbin/sysctl \-w kernel.domainname="example.com"
|
|
|
|
.br
|
|
|
|
/sbin/sysctl \-p /etc/sysctl.conf
|
2002-02-02 04:17:29 +05:30
|
|
|
.SH FILES
|
|
|
|
.I /proc/sys
|
2011-02-23 13:47:54 +05:30
|
|
|
.br
|
2002-02-02 04:17:29 +05:30
|
|
|
.I /etc/sysctl.conf
|
|
|
|
.SH SEE ALSO
|
|
|
|
.BR sysctl.conf (5)
|
|
|
|
.SH BUGS
|
2011-02-23 13:47:54 +05:30
|
|
|
The
|
|
|
|
.B \-A
|
|
|
|
parameter behaves just as
|
|
|
|
.B \-a
|
|
|
|
does.
|
2002-02-02 04:17:29 +05:30
|
|
|
.SH AUTHOR
|
|
|
|
George Staikos, <staikos@0wned.org>
|
|
|
|
|