snippetbashTip
sysctl — List and change kernel runtime variables. More information: <https://manned.org/sysctl.8>.
Viewed 0 times
commandandruntimeclichangesysctllistkernel
linux
Problem
How to use the
sysctl command: List and change kernel runtime variables. More information: <https://manned.org/sysctl.8>.Solution
sysctl — List and change kernel runtime variables. More information: <https://manned.org/sysctl.8>.Show all available variables and their values:
sysctl {{[-a|--all]}}Set a changeable kernel state variable:
sysctl {{[-w|--write]}} {{section.tunable}}={{value}}Get currently open file handlers:
sysctl fs.file-nrGet limit for simultaneous open files:
sysctl fs.file-maxApply changes from
/etc/sysctl.conf:sysctl {{[-p|--load]}}Code Snippets
Show all available variables and their values
sysctl {{[-a|--all]}}Set a changeable kernel state variable
sysctl {{[-w|--write]}} {{section.tunable}}={{value}}Get currently open file handlers
sysctl fs.file-nrGet limit for simultaneous open files
sysctl fs.file-maxApply changes from `/etc/sysctl.conf`
sysctl {{[-p|--load]}}Context
tldr-pages: linux/sysctl
Revisions (0)
No revisions yet.