1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-28 23:17:58 +01:00
tldr/pages/linux/sysctl.md
2022-01-27 11:10:17 -03:00

24 lines
431 B
Markdown

# 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`