IT lexicon › Infra & Ops › sysctl

sysctl

Infra & Ops På svenska → Updated: 2026-11-08

The BSD interface for reading and changing kernel settings on a running system, arranged as a tree of named variables.

It arrived with 4.4BSD in 1993 and replaced a grab bag of ad hoc methods, including reading kernel memory straight out of /dev/kmem. Each parameter has a hierarchical name such as kern.maxproc or net.inet.ip.forwarding, and the same tree is reachable from the sysctl(8) command and the sysctl(3) library call. Persistent changes go in /etc/sysctl.conf.

Every BSD branch and macOS still treat it as the main tool. Linux borrowed the name but hung the tree under /proc/sys; its own system call was so unloved that it was removed outright in 2020, while the command lives on as a thin wrapper around the files.

← Back to the lexicon