Updated: 21 Sep 1999
Index Return to Main Contents
NAMEsysctl - configure kernel parameters at runtime
SYNOPSISsysctl [-n] [-e] variable ...
sysctl [-n] [-e] [-q] -w variable=value ...
sysctl [-n] [-e] [-q] -p <filename>
sysctl [-n] [-e] -a
sysctl [-n] [-e] -A
DESCRIPTIONsysctl 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.
- Use this option to disable printing of the key name when printing values.
- Use this option to ignore errors about unknown keys.
- Use this option to only print the names. It may be useful with shells that have programmable completion.
- Use this option to not display the values set to stdout.
- Use this option when you want to change a sysctl setting.
- Load in sysctl settings from the file specified or /etc/sysctl.conf if none given. Specifying - as filename means reading data from standard input.
- Display all values currently available.
- Same as -a
- /sbin/sysctl -a
- /sbin/sysctl -n kernel.hostname
- /sbin/sysctl -w kernel.domainname="example.com"
- /sbin/sysctl -p /etc/sysctl.conf
NOTESPlease note that modules loaded after sysctl is run may override the settings (example: sunrpc.* settings are overridden when the sunrpc module is loaded). This may cause some confusion during boot when the settings in sysctl.conf may be overriden. To prevent such a situation, sysctl must be run after the particular module is loaded (e.g., from /etc/rc.d/rc.local or by using the install directive in modprobe.conf)
SEE ALSOsysctl.conf(5), modprobe.conf(5)
AUTHORGeorge Staikos, <email@example.com>
This document was created by man2html, using the manual pages.
Time: 05:34:30 GMT, December 24, 2015