sysctl
List and change kernel runtime variables. More information: https://manned.org/sysctl.8.
-
Show all available variables and their values:
sysctl -a
-
Set a changeable kernel state variable:
sysctl -w {{section.tunable}}={{value}}
-
Get currently open file handlers:
sysctl fs.file-nr
-
Get limit for simultaneous open files:
sysctl fs.file-max
-
Apply changes from
/etc/sysctl.conf
:
sysctl -p
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.