mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-11 06:16:53 +03:00
24 lines
378 B
Markdown
24 lines
378 B
Markdown
|
# 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`
|