Linux

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.

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store