System and processes
The sysctl command
Reads or changes kernel parameters live. With -w it applies them and saves to /etc/sysctl.conf.
Syntax
sysctl [-a] [-w] <clave[=valor]>Most useful options
-aShows all parameters-wWrites the given valueCopy-ready examples
$ sysctl net.ipv4.ip_forwardRead a value$ sysctl -w vm.swappiness=10Change itYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- Changes with -w are lost on reboot if they are not in /etc/sysctl.conf.
FAQ
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course