August 2000
Intermediate to advanced
816 pages
29h 45m
English
hostname
hostname [option] [nameofhost]
Set or print name of current host system. A privileged user can set the hostname with the nameofhost argument.
Display the alias name of the host (if used).
Print DNS domain name.
Print fully qualified domain name.
Consult file for hostname.
Print a help message and then exit.
Display the IP address(es) of the host.
Trim domain information from the printed name.
Verbose mode.
Print version information and then exit.
Display the NIS domain name. A privileged user can set a new NIS domain name with nameofhost.
Read now
Unlock full access