hostname

version: 0.0.9
hostname [OPTIONS] [host]

Display or set the system's host name.

Options

--help, -h

Print help information

--version, -V

Print version information

--domain, -d

Display the name of the DNS domain if possible

--ip-address, -i

Display the network address(es) of the host

--fqdn, -f

Display the FQDN (Fully Qualified Domain Name) (default)

--short, -s

Display the short hostname (the portion before the first dot) if possible