www.LinuxHowtos.org
SYSCTL.CONF
Section: File Formats (5)Updated: 202-0-29
Index Return to Main Contents
NAME
sysctl.conf - Linux kernel configuration parametersDESCRIPTION
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 procps sysctl. If you are using systemd-sysctl(8), refer to sysctl.d(5) and note that it won't use the file /etc/:sysctl:.conf.
Configuration Format
Each line of a file read by procps sysctl describes a kernel parameter in the following format.- token = value
FILES
procps sysctl, 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
BUGS
The maximum supported length of value is 4096 characters due to a limitation on /proc entry length in the Linux kernel.EXAMPLES
# # kernel.domainname = example.com ; A value containing a space is written to the sysctl. kernel.modprobe = /sbin/mod probe # A list of items for the value net.ipv4.ip_local_reserved_ports=8080,9148SEE ALSO
sysctl.d(5), sysctl(8), systemd-sysctl(8)