sysctl

sysctl – configure kernel parameters at runtime 

 

sysctl [-n] [-e] variable …
sysctl [-n] [-e] -w variable=value …
sysctl [-n] [-e] -p <filename> (default /etc/sysctl.conf)
sysctl [-n] [-e] -a
sysctl [-n] [-e] -A 

sysctl is used to modify kernel parameters at runtime

 

-n
Use this option to disable printing of the key name when printing values.
-e
Use this option to ignore errors about unknown keys.
-w
Use this option when you want to change a sysctl setting.
-p
Load in sysctl settings from the file specified or /etc/sysctl.conf if none given.
-a
Display all values currently available.
-A
Display all values currently available in table form.

/sbin/sysctl -a
/sbin/sysctl -n kernel.hostname
/sbin/sysctl -w kernel.domainname=”example.com”
/sbin/sysctl -p /etc/sysctl.conf