tldr/pages/linux/sysctl.md

25 lines
431 B
Markdown
Raw Normal View History

2016-01-30 10:28:14 +00:00
# sysctl
> List and change kernel runtime variables.
> More information: <https://manned.org/sysctl.8>.
2016-01-30 10:28:14 +00:00
- 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`:
2016-01-30 10:28:14 +00:00
`sysctl -p`