See and tweak live kernel options to diagnose behavior and test fixes before making them permanent. 27.01.2026 | reading time: 2 min Want to know what the kernel is doing right now and change one setting without rebooting? Use sysctl to read live kernel parameters, test hypotheses and verify effects before persisting them. Live Example: vm.swappiness Check the current swap tuning, lower it for more aggressive page cache retention, then verify the change with these commands and outputs: ```sh # show current value sysctl vm.swappiness # example output vm.swappiness = 60 # set temporarily to 10 sudo sysctl -w vm.swappiness=10 # example output after setting vm.swappiness = 10 # verify sysctl vm.swappiness # example output vm.swappiness = 10 ``` Make Changes Permanent Testing is one thing; persisting is another: write a key=value line into a file under /etc/sysctl.d or into /etc/sysctl.conf and reload with sysctl --system or sysctl -p; for example: ```sh echo "vm.swappiness=10" | sudo tee /etc/sysctl.d/99-local.conf >/dev/null sudo sysctl --system ``` Other Views and Shortcuts Explore the full space with `sysctl -a` to list all keys, use `sysctl -n` to show only values, or write directly to /proc/sys to change a parameter instantly; remember that -w makes a runtime change that does not survive reboot unless persisted. Related Tools Inspect /proc/sys directly for scripts, read the sysctl(8) man page for exact option names, and on systemd systems consider the systemd-sysctl service which applies sysctl files at boot. Where to go next Start by cataloging variables relevant to performance, networking and security on a test host and practise toggling them safely; to deepen system knowledge consider formal study for CompTIA Linux+ or LPIC-1 and intensive exam preparation at bitsandbytes.academy. Join Bits & Bytes Academy First class LINUX exam preparation. utilities security network boot-process troubleshooting