{"id":4580,"date":"2022-12-20T18:09:09","date_gmt":"2022-12-20T21:09:09","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/binfmt-d-man5\/"},"modified":"2022-12-20T18:09:09","modified_gmt":"2022-12-20T21:09:09","slug":"binfmt-d-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/binfmt-d-man5\/","title":{"rendered":"BINFMT.D (man5)"},"content":{"rendered":"<h1 align=\"center\">BINFMT.D<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#CONFIGURATION FORMAT\">CONFIGURATION FORMAT<\/a><br \/> <a href=\"#CONFIGURATION DIRECTORIES AND PRECEDENCE\">CONFIGURATION DIRECTORIES AND PRECEDENCE<\/a><br \/> <a href=\"#EXAMPLE\">EXAMPLE<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#NOTES\">NOTES<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">binfmt.d \u2212 Configure additional binary formats for executables at boot<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">\/etc\/binfmt.d\/*.conf<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\/run\/binfmt.d\/*.conf<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">\/usr\/lib\/binfmt.d\/*.conf<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">At boot, <b>systemd-binfmt.service<\/b>(8) reads configuration files from the above directories to register in the kernel additional binary formats for executables.<\/p>\n<h2>CONFIGURATION FORMAT <a name=\"CONFIGURATION FORMAT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Each file contains a list of binfmt_misc kernel binary format rules. Consult the kernel&#8217;s <b><font color=\"#0000FF\">binfmt\u2212misc.rst<\/font><\/b> <small><font color=\"#000000\">[1]<\/font><\/small> <font color=\"#000000\">documentation file for more information on registration of additional binary formats and how to write rules.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">Empty lines and lines beginning with ; and # are ignored. Note that this means you may not use ; and # as delimiter in binary format rules.<\/font><\/p>\n<h2>CONFIGURATION DIRECTORIES AND PRECEDENCE <a name=\"CONFIGURATION DIRECTORIES AND PRECEDENCE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">Configuration files are read from directories in \/etc\/, \/run\/, \/usr\/local\/lib\/, and \/usr\/lib\/, in order of precedence, as listed in the SYNOPSIS section above. Files must have the &#8220;.conf&#8221; extension. Files in \/etc\/ override files with the same name in \/run\/, \/usr\/local\/lib\/, and \/usr\/lib\/. Files in \/run\/ override files with the same name under \/usr\/.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">All configuration files are sorted by their filename in lexicographic order, regardless of which of the directories they reside in. If multiple files specify the same option, the entry in the file with the lexicographically latest name will take precedence. Thus, the configuration in a certain file may either be replaced completely (by placing a file with the same name in a directory with higher priority), or individual settings might be changed (by specifying additional settings in a file with a different name that is ordered later).<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">Packages should install their configuration files in \/usr\/lib\/ (distribution packages) or \/usr\/local\/lib\/ (local installs). Files in \/etc\/ are reserved for the local administrator, who may use this logic to override the configuration files installed by vendor packages. It is recommended to prefix all filenames with a two\u2212digit number and a dash, to simplify the ordering of the files.<\/font><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\">If the administrator wants to disable a configuration file supplied by the vendor, the recommended way is to place a symlink to \/dev\/null in the configuration directory in \/etc\/, with the same filename as the vendor configuration file. If the vendor configuration file is included in the initrd image, the image has to be regenerated.<\/font><\/p>\n<h2>EXAMPLE <a name=\"EXAMPLE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>Example\u00a01.\u00a0\/etc\/binfmt.d\/wine.conf example:<\/b><\/font><\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"><font color=\"#000000\"># Start WINE on Windows executables <br \/> :DOSWin:M::MZ::\/usr\/bin\/wine:<\/font><\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><font color=\"#000000\"><b>systemd<\/b>(1), <b>systemd-binfmt.service<\/b>(8), <b>systemd-delta<\/b>(1), <b>wine<\/b>(8)<\/font><\/p>\n<h2>NOTES <a name=\"NOTES\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"12%\"><\/td>\n<td width=\"3%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">1.<\/font><\/p>\n<\/td>\n<td width=\"2%\"><\/td>\n<td width=\"23%\">\n<p style=\"margin-top: 1em\"><font color=\"#000000\">binfmt-misc.rst<\/font><\/p>\n<\/td>\n<td width=\"60%\"> <\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:17%;\"><font color=\"#000000\">https:\/\/www.kernel.org\/doc\/html\/latest\/admin-guide\/binfmt-misc.html<\/font><\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  binfmt.d \u2212 Configure additional binary formats for executables at boot <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[959],"tags":[961,1531,1291],"class_list":["post-4580","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-binfmt","tag-man5"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4580","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=4580"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4580\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}