1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 12:42:07 +02:00
tldr/pages/linux/sysctl.md
Lucas Gabriel Schneider a5fe31bc47
multiple pages: format technical tokens (#5119)
Co-authored-by: bl-ue <54780737+bl-ue@users.noreply.github.com>
Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
2021-01-31 12:05:18 -05:00

380 B

sysctl

List and change kernel runtime variables.

  • 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