One Day One GNU/Linux Command (SYSCTL)
sysctl -- Configure kernel parameters at run-time
Summary:Linux Kernel has number of parameters, which can be modified to get best performance out of the system. sysctl can be used to view and modify thous kernel parameters value from the command prompt. All the kernel parameters are mapped in the /proc/sys/ folder. Examples:
$ sysctl -a -- List all currently available parameters. $ sysctl vm.swappiness -- Show the name and value of a parameter. $ sysctl -n vm.swappiness -- Show only the value. $ sysctl -N vm.swappiness -- Show only the name. $ sysctl -e vm.unknown -- Do not show the error message. # sysctl -p mysysctl.txt -- Load new setting values from a file. # sysctl -w vm.swappiness=25 -- Modify the parameter value.
Alternate way to view and modify the kernel parameters:
$ cat /proc/sys/vm/swappiness -- Show the value of this parameter. # echo 25 > /proc/sys/vm/swappiness -- Modify the parameter value.Read: man sysctl

