hostname(1) General Commands Manual hostname(1)

hostname - Display or set the system's host name.

hostname [-d|--domain] [-i|--ip-address] [-f|--fqdn] [-s|--short] [-h|--help] [-V|--version] [host]

Display or set the system's host name.

Display the name of the DNS domain if possible
Display the network address(es) of the host
Display the FQDN (Fully Qualified Domain Name) (default)
Display the short hostname (the portion before the first dot) if possible
Print help
Print version
[host]

v0.0.26

hostname 0.0.26