How To Install Sysctl On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian?

How To Install Sysctl On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian?

sysctl

List and change kernel runtime variables.

Maintainer: Craig Small



Section: admin

Install sysctl

  • Debian apt-get install procps Click to copy
  • Ubuntu apt-get install procps Click to copy
  • Alpine OS apk add procps Click to copy
  • Arch Linux pacman -S procps-ng Click to copy
  • Kali Linux apt-get install procps Click to copy
  • CentOS yum install procps-ng Click to copy
  • Fedora dnf install procps-ng Click to copy
  • Raspbian apt-get install procps Click to copy

List and change kernel runtime variables.

How to use sysctl?

Below are few example commands for sysctl that you can use in the terminal.

Show all available variables and their values:
sysctl -aClick to copy
Set a changeable kernel state variable:
sysctl -w section.tunable=valueClick to copy
Get currently open file handlers:
sysctl fs.file-nrClick to copy
Get limit for simultaneous open files:
sysctl fs.file-maxClick to copy
Apply changes from /etc/sysctl.conf:
sysctl -pClick to copy
To install the latest version of sysctl in your favorite operating system just copy the sysctl installation command from above and paste it into terminal. It will download and install the latest version of sysctl 2026 package in your OS.