hostname
时间:2006-08-13 来源:anima
hostname
hostname [option] [nameofhost]
Set or display name of current host system. A privileged user can set the hostname with the nameofhost argument.
Options
-a, --aliasDisplay the alias name of the host (if used).
-d, --domainDisplay DNS domain name.
-f, --fqdn, --longDisplay fully qualified domain name.
-F file, --file fileConsult file for hostname.
-h, --helpDisplay a help message and then exit.
-i, --ip-addressDisplay the IP address(es) of the host.
-n, --nodeDisplay or set the DECnet node name.
-s, --shortTrim domain information from the display output.
-v, --verboseVerbose mode.
-V, --versionDisplay version information and then exit.
-y, --yp, --nisDisplay the NIS domain name. A privileged user can set a new NIS domain name with nameofhost.
相关阅读 更多 +