sysctl
CautionKernel parameters
sysctl <key> / sysctl -w <key>=<val>
Reads/sets live kernel params. -w is temporary; persist via /etc/sysctl.d/ and sysctl --system.
Examples
sysctl -w net.ipv4.ip_forward=1Enable IP forwarding (temp)
Syntax
sysctl [-a] [-w key=value]
Before you run it
Wrong values destabilize the system.
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store