1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 16:53:10 +02:00

added Linux version for sysctl

This commit is contained in:
Cvetomird91 2016-01-30 12:28:14 +02:00 committed by Cvetomir Denchev
parent 1dd11b49e8
commit 3ef7b4eeb2

23
pages/linux/sysctl.md Normal file
View file

@ -0,0 +1,23 @@
# 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`