<p>The Linux <strong>sysctl</strong><strong> </strong>command configures kernel parameters at runtime. The parameters available are those listed under /proc/sys/. Procfs is required for <strong>sysctl(8)</strong> support in <a href="https://www.lifewire.com/learn-how-linux-4102755" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="1">Linux</a>. Use <strong>sysctl(8)</strong> to both read and write sysctl data. </p><h3>Synopsis</h3><p>sysctl [-n] [-e] variable ... <br/>sysctl [-n] [-e] -w variable&#61;value ... <br/>sysctl [-n] [-e] -p &lt;filename&gt; (default /etc/sysctl.conf) <br/>sysctl [-n] [-e] -a <br/>sysctl [-n] [-e] -A </p><h3>Parameters</h3><p><strong>variable</strong></p><p>The name of a key to read from. An example is <em>kernel</em><em>.ostype</em>. The slash separator is also accepted in place of a period delimiting the key/value pair—e.g., <em> kernel/ostype.</em></p><p><strong>variable&#61;value</strong></p><p>To set a key, use the form<em> variable&#61;value</em>, where <em>variable</em> is the key and <em>value </em>is the value it&#39;s set to. If the value contains quotes or characters that are parsed by the shell, you may need to enclose the value in double quotes. This requires the -w parameter to use.</p><p><strong>-n</strong></p><p>Use this option to disable printing of the key name when printing values.</p><p><strong>-e</strong></p><p>Use this option to ignore errors about unknown keys.</p><p><strong>-w</strong></p><p>Use this option when you want to change a sysctl setting.</p><p><strong>-p</strong></p><p>Load sysctl settings from the file specified or /etc/sysctl.conf if none was given.</p><p><strong>-a</strong></p><p>Display all values currently available.</p><p><strong>-A</strong></p><p>Display all values currently available in table form.</p><h3>Example Usage</h3><p>/sbin/sysctl -a</p><p>/sbin/sysctl -n kernel.hostname</p><p>/sbin/sysctl -w kernel.domainname&#61;&#34;example.com&#34;</p><p>/sbin/sysctl -p /etc/sysctl.conf</p><p>Specific usage may vary by Linux distribution. Use the <em>man</em> command (<em>% man</em>) to see <a href="https://www.lifewire.com/alternatives-linux-command-4091710" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="2">how a command</a> is used on your particular computer.</p>