sysctl.conf(5)

sysctl.conf5

Kernel state defaults

Overview

The /etc/sysctl.conf file is read in when the system goes into multi-user mode to set default settings for the kernel. The /etc/sysctl.conf is in the format of the sysctl(8) command, i.e.

sysctl_mib=value

Comments are denoted by a “#” at the beginning of a line.

Files

/etc/sysctl.conf

Initial settings for sysctl(8).

Examples

To disable coredumps, you may use a configuration like:

# Disable coredumps.
kern.coredump=0

Releases

115 releases since Mac OS X 10.5; the text changed 1 time.

  1. 10.5–11.5
  2. 12.0.1–26.5

History

The sysctl.conf file appeared in FreeBSD 4.0.

Bugs

If loadable kernel modules are used to introduce additional kernel functionality and sysctls to manage that functionality, sysctl.conf may be processed too early in the boot process to set those sysctls.

From system_cmds 1042.120.1 in macOS 26.5. Parsed by carta from the page's mdoc source.