Back to the learning path

sysctl

sysctl = system control Command details
Step 1/1: Kernel parameters

sysctl NAME reads a kernel parameter such as vm.swappiness (how eagerly swap is used) or net.ipv4.ip_forward (packet forwarding). -n prints the value only, -w changes it (needs root).

$ sysctl net.ipv4.ip_forward
Fundamentalssysctl
Read a kernel parameter
Use sysctl to read net.core.somaxconn, printing only the value.
dmesgNext lesson:sync