mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 22:35:45 +02:00
Merge pull request #751 from Cvetomird91/sysctl-linux
added Linux version for sysctl
This commit is contained in:
commit
682aa89061
1 changed files with 23 additions and 0 deletions
23
pages/linux/sysctl.md
Normal file
23
pages/linux/sysctl.md
Normal 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`
|
Loading…
Add table
Reference in a new issue