⌘K
Options (2)
-i, --ip-addressbooleanShow the network address of the host name
Example:
hostname {{[-i|--ip-address]}}-f, --fqdnbooleanShow the FQDN (Fully Qualified Domain Name)
Example:
hostname {{[-f|--fqdn]}}Examples (4)
Show current host name
hostnameShow the network address of the host name
hostname [-i|--ip-address]Show the FQDN (Fully Qualified Domain Name)
hostname [-f|--fqdn]Set current host name
hostname new_hostnamemade by @shridhargupta | data from tldr-pages