2023-02-08 12:58:55 +05:30
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2016-2023 Jim Warner <james.warner@comcast.net>
|
|
|
|
.\" Copyright (c) 2019-2023 Craig Small <csmall@dropbear.xyz>
|
|
|
|
.\" Copyright (c) 2011-2012 Sami Kerola <kerolasa@iki.fi>
|
|
|
|
.\" Copyright (c) 1999 George Staikos <staikos@0wned.org>
|
|
|
|
.\"
|
|
|
|
.\" This program is free software; you can redistribute it and/or modify
|
|
|
|
.\" it under the terms of the GNU General Public License as published by
|
|
|
|
.\" the Free Software Foundation; either version 2 of the License, or
|
|
|
|
.\" (at your option) any later version.
|
|
|
|
.\"
|
|
|
|
.\"
|
2021-09-15 17:15:26 +05:30
|
|
|
.TH SYSCTL.CONF "5" "2021-09-15" "procps-ng" "File Formats"
|
2002-02-02 04:17:29 +05:30
|
|
|
.SH NAME
|
2012-01-06 01:57:15 +05:30
|
|
|
sysctl.conf \- sysctl preload/configuration file
|
2002-02-02 04:17:29 +05:30
|
|
|
.SH DESCRIPTION
|
2012-01-06 01:57:15 +05:30
|
|
|
.B sysctl.conf
|
|
|
|
is a simple file containing sysctl values to be read in and set by
|
|
|
|
.BR sysctl .
|
2002-02-02 04:17:29 +05:30
|
|
|
The syntax is simply as follows:
|
|
|
|
.RS
|
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ne 7
|
|
|
|
# comment
|
|
|
|
; comment
|
|
|
|
|
2012-01-06 01:57:15 +05:30
|
|
|
token = value
|
2002-02-02 04:17:29 +05:30
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.PP
|
|
|
|
Note that blank lines are ignored, and whitespace before and after a token or
|
|
|
|
value is ignored, although a value can contain whitespace within. Lines which
|
2020-06-04 17:55:26 +05:30
|
|
|
begin with a \fI#\fR or \fI;\fR are considered comments and ignored.
|
2019-09-21 11:20:53 +05:30
|
|
|
|
|
|
|
If a line begins with a single \-, any attempts to set the value that fail will be
|
|
|
|
ignored.
|
|
|
|
|
2016-09-19 22:32:47 +05:30
|
|
|
.SH NOTES
|
2016-09-21 17:37:07 +05:30
|
|
|
As the
|
2016-09-19 22:32:47 +05:30
|
|
|
.BR /etc/sysctl.conf
|
|
|
|
file is used to override default kernel parameter values, only a small number of parameters is predefined in the file.
|
2016-09-21 17:37:07 +05:30
|
|
|
Use
|
2016-09-19 22:32:47 +05:30
|
|
|
.IR /sbin/sysctl\ \-a
|
2016-09-21 17:37:07 +05:30
|
|
|
or follow
|
|
|
|
.BR sysctl (8)
|
2016-09-19 22:32:47 +05:30
|
|
|
to list all possible parameters. The description of individual parameters can be found in the kernel documentation.
|
2021-09-15 17:15:26 +05:30
|
|
|
|
|
|
|
Maximum supported line length of the value is 4096 characters due
|
|
|
|
to a limitation of \fI/proc\fR entries in Linux kernel.
|
2002-02-02 04:17:29 +05:30
|
|
|
.SH EXAMPLE
|
|
|
|
.RS
|
|
|
|
.sp
|
|
|
|
.nf
|
|
|
|
.ne 7
|
|
|
|
# sysctl.conf sample
|
|
|
|
#
|
|
|
|
kernel.domainname = example.com
|
|
|
|
; this one has a space which will be written to the sysctl!
|
|
|
|
kernel.modprobe = /sbin/mod probe
|
|
|
|
.fi
|
|
|
|
.RE
|
|
|
|
.PP
|
2012-01-06 01:57:15 +05:30
|
|
|
.SH FILES
|
2020-02-27 16:26:13 +05:30
|
|
|
.I /etc/sysctl.d/*.conf
|
|
|
|
.br
|
|
|
|
.I /run/sysctl.d/*.conf
|
|
|
|
.br
|
|
|
|
.I /usr/local/lib/sysctl.d/*.conf
|
|
|
|
.br
|
|
|
|
.I /usr/lib/sysctl.d/*.conf
|
|
|
|
.br
|
|
|
|
.I /lib/sysctl.d/*.conf
|
|
|
|
.br
|
|
|
|
.I /etc/sysctl.conf
|
|
|
|
|
2012-01-06 01:57:15 +05:30
|
|
|
The paths where
|
2020-02-27 16:26:13 +05:30
|
|
|
.B sysctl
|
2014-09-13 23:32:45 +05:30
|
|
|
preload files usually exist. See also
|
2020-02-27 16:26:13 +05:30
|
|
|
.B sysctl
|
2012-01-06 01:57:15 +05:30
|
|
|
option
|
|
|
|
.IR \-\-system .
|
2002-02-02 04:17:29 +05:30
|
|
|
.SH SEE ALSO
|
2012-01-06 01:57:15 +05:30
|
|
|
.BR sysctl (8)
|
2002-02-02 04:17:29 +05:30
|
|
|
.SH AUTHOR
|
2012-04-16 16:25:53 +05:30
|
|
|
.UR staikos@0wned.org
|
2012-01-06 01:57:15 +05:30
|
|
|
George Staikos
|
|
|
|
.UE
|
|
|
|
.SH "REPORTING BUGS"
|
|
|
|
Please send bug reports to
|
2012-04-16 16:25:53 +05:30
|
|
|
.UR procps@freelists.org
|
2012-01-06 01:57:15 +05:30
|
|
|
.UE
|