Options (3)
-a, --allbooleanShow all available variables and their values
Example:
sysctl {{[-a|--all]}}-w, --writebooleanSet a changeable kernel state variable
Example:
sysctl {{[-w|--write]}} {{section.tunable}}={{value}}-p, --loadbooleanApply changes from `/etc/sysctl.conf`
Example:
sysctl {{[-p|--load]}}Examples (5)
Show all available variables and their values
sysctl [-a|--all]Set a changeable kernel state variable
sysctl [-w|--write] section.tunable=valueGet 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]made by @shridhargupta | data from tldr-pages