1SYSCTL(8) SYSCTL(8)
2
3
4
6 sysctl - configure kernel parameters at runtime
7
9 sysctl [-n] [-e] variable ...
10 sysctl [-n] [-e] [-q] -w variable=value ...
11 sysctl [-n] [-e] [-q] -p <filename>
12 sysctl [-n] [-e] -a
13 sysctl [-n] [-e] -A
14
16 sysctl is used to modify kernel parameters at runtime. The parameters
17 available are those listed under /proc/sys/. Procfs is required for
18 sysctl(8) support in Linux. You can use sysctl(8) to both read and
19 write sysctl data.
20
22 variable
23 The name of a key to read from. An example is kernel.ostype.
24 The '/' separator is also accepted in place of a '.'.
25
26 variable=value
27 To set a key, use the form variable=value, where variable is the
28 key and value is the value to set it to. If the value contains
29 quotes or characters which are parsed by the shell, you may need
30 to enclose the value in double quotes. This requires the -w
31 parameter to use.
32
33 -n Use this option to disable printing of the key name when printā
34 ing values.
35
36 -e Use this option to ignore errors about unknown keys.
37
38 -N Use this option to only print the names. It may be useful with
39 shells that have programmable completion.
40
41 -q Use this option to not display the values set to stdout.
42
43 -w Use this option when you want to change a sysctl setting.
44
45 -p Load in sysctl settings from the file specified or
46 /etc/sysctl.conf if none given. Specifying - as filename means
47 reading data from standard input.
48
49 -a Display all values currently available.
50
51 -A Display all values currently available in table form.
52
54 /sbin/sysctl -a
55
56 /sbin/sysctl -n kernel.hostname
57
58 /sbin/sysctl -w kernel.domainname="example.com"
59
60 /sbin/sysctl -p /etc/sysctl.conf
61
63 /proc/sys /etc/sysctl.conf
64
66 sysctl.conf(5)
67
69 The -A parameter behaves just as -a does.
70
72 George Staikos, <staikos@0wned.org>
73
74
75
76
77 21 Sep 1999 SYSCTL(8)