September 2009
Beginner
942 pages
85h 34m
English
hostname
hostname [option] [nameofhost]
Set or display 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).
Display DNS domain name.
Display fully qualified domain name.
Consult file for hostname.
Display a help message and then exit.
Display the IP address(es) of the host.
Trim domain information from the display output.
Verbose mode.
Display version information and then exit.
Display the NIS domain name. A privileged user can set a new NIS domain name with nameofhost.