3 hostname: Show or set system host name.
hostname is a program to show or set the name of host system.
hostname [option...] [name]
- -a
- --aliases
- Get alias names.
- -d
- --domain
- Get DNS domain name.
- -f
- --fqdn
- --long
- Get DNS host name or Fully Qualified Domain Name.
- -F
- --file
- Set host name or NIS domain name from FILE.
- -i
- --ip-addresses
- Get addresses for the host name.
- -s
- --short
- Get short host name.
- -y
- --yp
- --nis
- Get NIS/YP domain name.