{"id":4659,"date":"2022-12-20T18:09:30","date_gmt":"2022-12-20T21:09:30","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/hostname-man5\/"},"modified":"2022-12-20T18:09:30","modified_gmt":"2022-12-20T21:09:30","slug":"hostname-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/hostname-man5\/","title":{"rendered":"HOSTNAME (man5)"},"content":{"rendered":"<h1 align=\"center\">HOSTNAME<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#HISTORY\">HISTORY<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">hostname \u2212 Local hostname configuration file<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">\/etc\/hostname<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The \/etc\/hostname file configures the name of the local system that is set during boot using the <b>sethostname<\/b>(2) system call. It should contain a single newline\u2212terminated hostname string. Comments (lines starting with a \u2018#&#8217;) are ignored. The hostname may be a free\u2212form string up to 64 characters in length; however, it is recommended that it consists only of 7\u2212bit ASCII lower\u2212case characters and no spaces or dots, and limits itself to the format allowed for DNS domain name labels, even though this is not a strict requirement.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">You may use <b>hostnamectl<\/b>(1) to change the value of this file during runtime from the command line. Use <b>systemd-firstboot<\/b>(1) to initialize it on mounted (but not booted) system images.<\/p>\n<h2>HISTORY <a name=\"HISTORY\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The simple configuration file format of \/etc\/hostname originates from Debian GNU\/Linux.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>systemd<\/b>(1), <b>sethostname<\/b>(2), <b>hostname<\/b>(1), <b>hostname<\/b>(7), <b>machine-id<\/b>(5), <b>machine-info<\/b>(5), <b>hostnamectl<\/b>(1), <b>systemd-hostnamed.service<\/b>(8), <b>systemd-firstboot<\/b>(1)<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  hostname \u2212 Local hostname configuration file <\/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,1139,1291],"class_list":["post-4659","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-hostname","tag-man5"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4659","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=4659"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4659\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}