logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

sysctl.conf - Linux kernel configuration parameters

Bugs

The maximum supported length of value is 4096 characters due to a limitation on /proc entry length in the Linux kernel.

Description

sysctl.conf is a set of configuration files that contain Linux kernel configuration parameters to be read and set by sysctl(8). This man page describes the configuration files for procpssysctl. If you are using systemd-sysctl(8), refer to sysctl.d(5) and note that it won't use the file /etc/sysctl.conf. ConfigurationFormat Each line of a file read by procpssysctl describes a kernel parameter in the following format. token = value Blank lines and lines that start with “#” or “;” are ignored. If a line begins with a single “-”, a failing attempt to set the value is ignored.

Examples

# # kernel.domainname = example.com ; A value containing a space is written to the sysctl. kernel.modprobe = /sbin/mod probe

Files

procpssysctl, when run with the --system option, reads files from directories in the order shown below. /etc/sysctl.d/*.conf/run/sysctl.d/*.conf/usr/local/lib/sysctl.d/*.conf/usr/lib/sysctl.d/*.conf/lib/sysctl.d/*.conf Finally, procpssysctl reads /etc/sysctl.conf. This file is not used by systemd-sysctl, which means that some kernel parameters are not set depending on the implementation of sysctl that is installed.

Name

sysctl.conf - Linux kernel configuration parameters

See Also

sysctl.d(5), sysctl(8), systemd-sysctl(8) procps-ng 2024-10-24 SYSCTL.CONF(5)

See Also