sysctl - configure kernel parameters at runtime
sysctl [-n] [-e] variable ...
sysctl [-n] [-e] [-q] -w variable=value ... sysctl [-n] [-e] [-q] -p <filename>
sysctl [-n] [-e] -a
sysctl [-n] [-e] -A
sysctl is used to modify kernel parameters at runtime. The parameters available are those listed under /proc/sys/. Procfs is required for sysctl(8) support in Linux. You can use sysctl(8) to both read and write sysctl data.
The name of a key to read from. An example is kernel.ostype. The ‘/’ separator is also accepted in place of a ‘.’.
To set a key, use the form variable=value, where variable is the key and 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 -w parameter to use.
/sbin/sysctl -n kernel.hostname
/sbin/sysctl -w kernel.domainname="example.com"
/sbin/sysctl -p /etc/sysctl.conf
The -A parameter behaves just as -a does.
George Staikos, <firstname.lastname@example.org>
Table of Contents