mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-07 23:45:52 +00:00
Update cheatsheets
This commit is contained in:
29
linux/sysctl
Normal file
29
linux/sysctl
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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`
|
||||
Reference in New Issue
Block a user