{"id":361,"date":"2019-10-21T19:58:04","date_gmt":"2019-10-21T17:58:04","guid":{"rendered":"http:\/\/linuxboxen2.dk\/?p=361"},"modified":"2019-10-21T19:58:04","modified_gmt":"2019-10-21T17:58:04","slug":"sysctl","status":"publish","type":"post","link":"https:\/\/www.linuxboxen.dk\/?p=361","title":{"rendered":"SYSCTL"},"content":{"rendered":"<p>SYSCTL(8)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 System Administration\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SYSCTL(8)<\/p>\n<p>NAME\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>sysctl &#8211; configure kernel parameters at runtime<\/p>\n<p>SYNOPSIS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>sysctl [options] [variable[=value]] [&#8230;]<br \/>\nsysctl -p [file or regexp] [&#8230;]<\/p>\n<p>DESCRIPTION\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>sysctl is used to modify kernel parameters at runtime.\u00a0 The<br \/>\nparameters available are those listed under \/proc\/sys\/.\u00a0 Procfs is<br \/>\nrequired for sysctl support in Linux.\u00a0 You can use sysctl to both<br \/>\nread and write sysctl data.<\/p>\n<p>PARAMETERS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>variable<br \/>\nThe name of a key to read from.\u00a0 An example is kernel.ostype.<br \/>\nThe &#8216;\/&#8217; separator is also accepted in place of a &#8216;.&#8217;.<\/p>\n<p>variable=value<br \/>\nTo set a key, use the form variable=value where variable is<br \/>\nthe key and value is the value to set it to.\u00a0 If the value<br \/>\ncontains quotes or characters which are parsed by the shell,<br \/>\nyou may need to enclose the value in double quotes.\u00a0 This<br \/>\nrequires the -w parameter to use.<\/p>\n<p>-n, &#8211;values<br \/>\nUse this option to disable printing of the key name when<br \/>\nprinting values.<\/p>\n<p>-e, &#8211;ignore<br \/>\nUse this option to ignore errors about unknown keys.<\/p>\n<p>-N, &#8211;names<br \/>\nUse this option to only print the names.\u00a0 It may be useful<br \/>\nwith shells that have programmable completion.<\/p>\n<p>-q, &#8211;quiet<br \/>\nUse this option to not display the values set to stdout.<\/p>\n<p>-w, &#8211;write<br \/>\nUse this option when you want to change a sysctl setting.<\/p>\n<p>-p[FILE], &#8211;load[=FILE]<br \/>\nLoad in sysctl settings from the file specified or<br \/>\n\/etc\/sysctl.conf if none given.\u00a0 Specifying &#8211; as filename<br \/>\nmeans reading data from standard input.\u00a0 Using this option<br \/>\nwill mean arguments to sysctl are files, which are read in the<br \/>\norder they are specified.\u00a0 The file argument may be specified<br \/>\nas regular expression.<\/p>\n<p>-a, &#8211;all<br \/>\nDisplay all values currently available.<\/p>\n<p>&#8211;deprecated<br \/>\nInclude deprecated parameters to &#8211;all values listing.<\/p>\n<p>-b, &#8211;binary<br \/>\nPrint value without new line.<\/p>\n<p>&#8211;system<br \/>\nLoad settings from all system configuration files.<br \/>\n\/run\/sysctl.d\/*.conf<br \/>\n\/etc\/sysctl.d\/*.conf<br \/>\n\/usr\/local\/lib\/sysctl.d\/*.conf<br \/>\n\/usr\/lib\/sysctl.d\/*.conf<br \/>\n\/lib\/sysctl.d\/*.conf<br \/>\n\/etc\/sysctl.conf<\/p>\n<p>-r, &#8211;pattern pattern<br \/>\nOnly apply settings that match pattern.\u00a0 The pattern uses<br \/>\nextended regular expression syntax.<\/p>\n<p>-A\u00a0\u00a0\u00a0\u00a0 Alias of -a<\/p>\n<p>-d\u00a0\u00a0\u00a0\u00a0 Alias of -h<\/p>\n<p>-f\u00a0\u00a0\u00a0\u00a0 Alias of -p<\/p>\n<p>-X\u00a0\u00a0\u00a0\u00a0 Alias of -a<\/p>\n<p>-o\u00a0\u00a0\u00a0\u00a0 Does nothing, exists for BSD compatibility.<\/p>\n<p>-x\u00a0\u00a0\u00a0\u00a0 Does nothing, exists for BSD compatibility.<\/p>\n<p>-h, &#8211;help<br \/>\nDisplay help text and exit.<\/p>\n<p>-V, &#8211;version<br \/>\nDisplay version information and exit.<\/p>\n<p>EXAMPLES\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>\/sbin\/sysctl -a<br \/>\n\/sbin\/sysctl -n kernel.hostname<br \/>\n\/sbin\/sysctl -w kernel.domainname=&#8221;example.com&#8221;<br \/>\n\/sbin\/sysctl -p\/etc\/sysctl.conf<br \/>\n\/sbin\/sysctl -a &#8211;pattern forward<br \/>\n\/sbin\/sysctl -a &#8211;pattern forward$<br \/>\n\/sbin\/sysctl -a &#8211;pattern &#8216;net.ipv4.conf.(eth|wlan)0.arp&#8217;<br \/>\n\/sbin\/sysctl &#8211;system &#8211;pattern &#8216;^net.ipv6&#8217;<\/p>\n<p>DEPRECATED PARAMETERS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>The base_reachable_time and retrans_time are deprecated.\u00a0 The sysctl<br \/>\ncommand does not allow changing values of these parameters.\u00a0 Users<br \/>\nwho insist to use deprecated kernel interfaces should push values to<br \/>\n\/proc file system by other means.\u00a0 For example:<\/p>\n<p>echo 256 &gt; \/proc\/sys\/net\/ipv6\/neigh\/eth0\/base_reachable_time<\/p>\n<p>FILES\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>\/proc\/sys<br \/>\n\/etc\/sysctl.conf<\/p>\n<p>SEE ALSO\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>sysctl.conf(5) regex(7)<\/p>\n<p>AUTHOR\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>George Staikos \u27e8staikos@0wned.org\u27e9<\/p>\n<p>REPORTING BUGS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>Please send bug reports to \u27e8procps@freelists.org\u27e9<\/p>\n<p>COLOPHON\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>This page is part of the procps-ng (\/proc filesystem utilities)<br \/>\nproject.\u00a0 Information about the project can be found at<br \/>\n\u27e8http:\/\/sourceforge.net\/projects\/procps-ng\/\u27e9.\u00a0 If you have a bug<br \/>\nreport for this manual page, see<br \/>\n\u27e8http:\/\/sourceforge.net\/p\/procps-ng\/tickets\/\u27e9.\u00a0 This page was obtained<br \/>\nfrom the project&#8217;s upstream Git repository<br \/>\n(https:\/\/gitorious.org\/procps) on 2014-12-30.\u00a0 If you discover any<br \/>\nrendering problems in this HTML version of the page, or you believe<br \/>\nthere is a better or more up-to-date source for the page, or you have<br \/>\ncorrections or improvements to the information in this COLOPHON<br \/>\n(which is not part of the original manual page), send a mail to<br \/>\nman-pages@man7.org<\/p>\n<p>procps-ng\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Jan 2012\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SYSCTL(8)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SYSCTL(8)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 System Administration\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SYSCTL(8) NAME\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top sysctl &#8211; configure kernel parameters at runtime SYNOPSIS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top sysctl [options] [variable[=value]] [&#8230;] sysctl -p [file or regexp] [&#8230;] DESCRIPTION\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top sysctl is used to modify kernel parameters at runtime.\u00a0 The parameters available are those listed under \/proc\/sys\/.\u00a0 Procfs is required for sysctl support in Linux.\u00a0 You can use [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[8],"tags":[],"class_list":["post-361","post","type-post","status-publish","format-standard","hentry","category-shell"],"a3_pvc":{"activated":false,"total_views":0,"today_views":0},"_links":{"self":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=361"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/361\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}