Linux

Where Are sysctl Settings Stored on Linux?

Linux sysctl config: /etc/sysctl.conf plus /etc/sysctl.d drop-ins and the sysctl tool.

Last updated

Kernel tunables live in /etc/sysctl.conf with drop-in fragments in /etc/sysctl.d. The sysctl tool reads and applies them at boot and on demand.

Drop-ins beat monolith edits. Numbered prefixes order application; later files win on conflicts.

Where Linux stores this, by platform

Linux
/etc/sysctl.conf

Main file plus the .d drop-in directory. Apply with sysctl --system; verify single keys with sysctl key. Custom tunables belong in /etc/sysctl.d.

Frequently asked questions

Where should custom kernel tunables go?

Drop a .conf file in /etc/sysctl.d (e.g. 99-custom.conf), then sysctl --system to apply. Cleaner than editing the main file and survives package updates.

Notice an outdated path? Let us know.