1SYSCTL.CONF(5) File Formats SYSCTL.CONF(5)
2
3
4
6 sysctl.conf - sysctl preload/configuration file
7
9 sysctl.conf is a simple file containing sysctl values to be read in and
10 set by sysctl. The syntax is simply as follows:
11
12 # comment
13 ; comment
14
15 token = value
16
17 Note that blank lines are ignored, and whitespace before and after a
18 token or value is ignored, although a value can contain whitespace
19 within. Lines which begin with a # or ; are considered comments and
20 ignored.
21
22 If a line begins with a single -, any attempts to set the value that
23 fail will be ignored.
24
25
27 As the /etc/sysctl.conf file is used to override default kernel parame‐
28 ter values, only a small number of parameters is predefined in the
29 file. Use /sbin/sysctl -a or follow sysctl(8) to list all possible pa‐
30 rameters. The description of individual parameters can be found in the
31 kernel documentation.
32
33 Maximum supported line length of the value is 4096 characters due to a
34 limitation of /proc entries in Linux kernel.
35
37 # sysctl.conf sample
38 #
39 kernel.domainname = example.com
40 ; this one has a space which will be written to the sysctl!
41 kernel.modprobe = /sbin/mod probe
42
44 /etc/sysctl.d/*.conf
45 /run/sysctl.d/*.conf
46 /usr/local/lib/sysctl.d/*.conf
47 /usr/lib/sysctl.d/*.conf
48 /lib/sysctl.d/*.conf
49 /etc/sysctl.conf
50
51 The paths where sysctl preload files usually exist. See also sysctl
52 option --system.
53
55 sysctl(8)
56
58 George Staikos ⟨staikos@0wned.org⟩
59
61 Please send bug reports to ⟨procps@freelists.org⟩
62
63
64
65procps-ng 2021-09-15 SYSCTL.CONF(5)