📄 hostname.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head> <title></title> <link rel="stylesheet" media="screen" type="text/css" href="./style.css" /> <link rel="stylesheet" media="screen" type="text/css" href="./design.css" /> <link rel="stylesheet" media="print" type="text/css" href="./print.css" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><a href=start.html>start</a></br><div class="toc"><div class="tocheader toctoggle" id="toc__header">Table of Contents</div><div id="toc__inside"><ul class="toc"><li class="level1"><div class="li"><span class="li"><a href="#hostname" class="toc">Hostname</a></span></div><ul class="toc"><li class="level2"><div class="li"><span class="li"><a href="#example" class="toc">Example</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#more_information" class="toc">More information</a></span></div></li></ul></li></ul></div></div><h1><a name="hostname" id="hostname">Hostname</a></h1><div class="level1"><p> <code>hostname</code> is the program that is used to either set or display the current host, domain or node name of the system. These names are used by many of the networking programs to identify the machine. When called without any arguments, the program displays the name of the system as returned by the gethostname(2) function.</p></div><!-- SECTION [1-350] --><h2><a name="example" id="example">Example</a></h2><div class="level2"><pre class="code">root:~> hostnameblackfinroot:~> hostname -hhostname: illegal option -- hBusyBox v1.00 (2006.04.21-19:01+0000) multi-call binaryUsage: hostname [OPTION] {hostname | -F FILE}Get or set the hostname or DNS domain name. If a hostname is given(or FILE with the -F parameter), the host name will be set.Options: -s Short -i Addresses for the hostname -d DNS domain name -f Fully qualified domain name -F FILE Use the contents of FILE to specify the hostnameroot:~> hostname foo_barroot:~> hostnamefoo_barroot:~></pre></div><!-- SECTION [351-968] --><h2><a name="more_information" id="more_information">More information</a></h2><div class="level2"><ul><li class="level1"><div class="li"> <a href="http://www.busybox.net/downloads/BusyBox.html#item_hostname" class="urlextern" title="http://www.busybox.net/downloads/BusyBox.html#item_hostname" rel="nofollow">busybox</a></div></li></ul></div><!-- SECTION [969-] --></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -