{"id":3533,"date":"2022-12-20T17:08:56","date_gmt":"2022-12-20T20:08:56","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/sysctl-man8\/"},"modified":"2022-12-20T17:08:56","modified_gmt":"2022-12-20T20:08:56","slug":"sysctl-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/sysctl-man8\/","title":{"rendered":"SYSCTL (man8)"},"content":{"rendered":"<h1 align=\"center\">SYSCTL<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#PARAMETERS\">PARAMETERS<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#DEPRECATED PARAMETERS\">DEPRECATED PARAMETERS<\/a><br \/> <a href=\"#FILES\">FILES<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a><br \/> <a href=\"#REPORTING BUGS\">REPORTING BUGS<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">sysctl \u2212 configure kernel parameters at runtime<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>sysctl<\/b> [<i>options<\/i>] [<i>variable<\/i>[<b>=<\/b><i>value<\/i>]] [&#8230;] <b><br \/> sysctl \u2212p<\/b> [<i>file<\/i> or <i>regexp<\/i>] [&#8230;]<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>sysctl<\/b> is used to modify kernel parameters at runtime. The parameters available are those listed under \/proc\/sys\/. Procfs is required for <b>sysctl<\/b> support in Linux. You can use <b>sysctl<\/b> to both read and write sysctl data.<\/p>\n<h2>PARAMETERS <a name=\"PARAMETERS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>variable<\/i><\/p>\n<p style=\"margin-left:22%;\">The name of a key to read from. An example is kernel.ostype. The \u2019\/\u2019 separator is also accepted in place of a \u2019.\u2019.<\/p>\n<p style=\"margin-left:11%;\"><i>variable<\/i>=<i>value<\/i><\/p>\n<p style=\"margin-left:22%;\">To set a key, use the form <i>variable<\/i>=<i>value<\/i> where <i>variable<\/i> is the key and <i>value<\/i> is the value to set it to. If the value contains quotes or characters which are parsed by the shell, you may need to enclose the value in double quotes.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212n<\/b>, <b>\u2212\u2212values<\/b><\/p>\n<p style=\"margin-left:22%;\">Use this option to disable printing of the key name when printing values.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212e<\/b>, <b>\u2212\u2212ignore<\/b><\/p>\n<p style=\"margin-left:22%;\">Use this option to ignore errors about unknown keys.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212N<\/b>, <b>\u2212\u2212names<\/b><\/p>\n<p style=\"margin-left:22%;\">Use this option to only print the names. It may be useful with shells that have programmable completion.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212q<\/b>, <b>\u2212\u2212quiet<\/b><\/p>\n<p style=\"margin-left:22%;\">Use this option to not display the values set to stdout.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212w<\/b>, <b>\u2212\u2212write<\/b><\/p>\n<p style=\"margin-left:22%;\">Use this option when all arguments prescribe a key to be set.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212p<\/b>[<i>FILE<\/i>], <b>\u2212\u2212load<\/b>[=<i>FILE<\/i>]<\/p>\n<p style=\"margin-left:22%;\">Load in sysctl settings from the file specified or \/etc\/sysctl.conf if none given. Specifying \u2212 as filename means reading data from standard input. Using this option will mean arguments to <b>sysctl<\/b> are files, which are read in the order they are specified. The file argument may be specified as regular expression.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212a<\/b>, <b>\u2212\u2212all<\/b><\/p>\n<p style=\"margin-left:22%;\">Display all values currently available.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212\u2212deprecated<\/b><\/p>\n<p style=\"margin-left:22%;\">Include deprecated parameters to <b>\u2212\u2212all<\/b> values listing.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212b<\/b>, <b>\u2212\u2212binary<\/b><\/p>\n<p style=\"margin-left:22%;\">Print value without new line.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212\u2212system<\/b><\/p>\n<p style=\"margin-left:22%;\">Load settings from all system configuration files. Files are read from directories in the following list in given order from top to bottom. Once a file of a given filename is loaded, any file of the same name in subsequent directories is ignored. <br \/> \/etc\/sysctl.d\/51-alt-sysrq.conf \/etc\/sysctl.d\/51-drakx.conf <br \/> \/run\/sysctl.d\/*.conf <br \/> \/usr\/local\/lib\/sysctl.d\/*.conf <br \/> \/usr\/lib\/sysctl.d\/50-default.conf \/usr\/lib\/sysctl.d\/50-libreswan.conf \/usr\/lib\/sysctl.d\/50-pid-max.conf <br \/> \/lib\/sysctl.d\/50-default.conf \/lib\/sysctl.d\/50-libreswan.conf \/lib\/sysctl.d\/50-pid-max.conf <br \/> \/etc\/sysctl.conf<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212r<\/b>, <b>\u2212\u2212pattern<\/b> <i>pattern<\/i><\/p>\n<p style=\"margin-left:22%;\">Only apply settings that match <i>pattern<\/i>. The <i>pattern<\/i> uses extended regular expression syntax.<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212A<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"66%\">\n<p>Alias of <b>\u2212a<\/b><\/p>\n<\/td>\n<td width=\"12%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212d<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"66%\">\n<p>Alias of <b>\u2212h<\/b><\/p>\n<\/td>\n<td width=\"12%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212f<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"66%\">\n<p>Alias of <b>\u2212p<\/b><\/p>\n<\/td>\n<td width=\"12%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212X<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"66%\">\n<p>Alias of <b>\u2212a<\/b><\/p>\n<\/td>\n<td width=\"12%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212o<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"66%\">\n<p>Does nothing, exists for BSD compatibility.<\/p>\n<\/td>\n<td width=\"12%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"3%\">\n<p><b>\u2212x<\/b><\/p>\n<\/td>\n<td width=\"8%\"><\/td>\n<td width=\"66%\">\n<p>Does nothing, exists for BSD compatibility.<\/p>\n<\/td>\n<td width=\"12%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%;\"><b>\u2212h<\/b>, <b>\u2212\u2212help<\/b><\/p>\n<p style=\"margin-left:22%;\">Display help text and exit.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212V<\/b>, <b>\u2212\u2212version<\/b><\/p>\n<p style=\"margin-left:22%;\">Display version information and exit.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">\/sbin\/sysctl \u2212a <br \/> \/sbin\/sysctl \u2212n kernel.hostname <br \/> \/sbin\/sysctl \u2212w kernel.domainname=&#8221;example.com&#8221; <br \/> \/sbin\/sysctl \u2212p\/etc\/sysctl.conf <br \/> \/sbin\/sysctl \u2212a \u2212\u2212pattern forward <br \/> \/sbin\/sysctl \u2212a \u2212\u2212pattern forward$ <br \/> \/sbin\/sysctl \u2212a \u2212\u2212pattern \u2019net.ipv4.conf.(eth|wlan)0.arp\u2019 <br \/> \/sbin\/sysctl \u2212\u2212system \u2212\u2212pattern \u2019^net.ipv6\u2019<\/p>\n<h2>DEPRECATED PARAMETERS <a name=\"DEPRECATED PARAMETERS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>base_reachable_time<\/b> and <b>retrans_time<\/b> are deprecated. The <b>sysctl<\/b> command does not allow changing values of these parameters. Users who insist to use deprecated kernel interfaces should push values to \/proc file system by other means. For example:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">echo 256 > \/proc\/sys\/net\/ipv6\/neigh\/eth0\/base_reachable_time<\/p>\n<h2>FILES <a name=\"FILES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i>\/proc\/sys <br \/> \/etc\/sysctl.d\/51-alt-sysrq.conf \/etc\/sysctl.d\/51-drakx.conf <br \/> \/run\/sysctl.d\/*.conf <br \/> \/usr\/local\/lib\/sysctl.d\/*.conf <br \/> \/usr\/lib\/sysctl.d\/50-default.conf \/usr\/lib\/sysctl.d\/50-libreswan.conf \/usr\/lib\/sysctl.d\/50-pid-max.conf <br \/> \/lib\/sysctl.d\/50-default.conf \/lib\/sysctl.d\/50-libreswan.conf \/lib\/sysctl.d\/50-pid-max.conf <br \/> \/etc\/sysctl.conf<\/i><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><i><b>sysctl.conf<\/b><\/i>(5) <b>regex<\/b>(7)<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><a href=\"staikos@0wned.org\">George Staikos<\/a><\/p>\n<h2>REPORTING BUGS <a name=\"REPORTING BUGS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Please send bug reports to <a href=\"procps@freelists.org\">procps@freelists.org<\/a><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  sysctl \u2212 configure kernel parameters at runtime <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,4,653],"class_list":["post-3533","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-man8","tag-sysctl"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3533","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3533"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3533\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3533"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}