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
This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.