Next: , Previous: , Up: Top   [Contents][Index]

4 hostname: Show or set system host name.

hostname is a program to show or to set the name of a host system.


hostname [option…]
hostname name

where name is the name to be used by the running host.

4.1 Command line options


Get alias names.


Get DNS domain name.


Get DNS host name or Fully Qualified Domain Name.

-F file

Set host name or NIS domain name from FILE.


Get addresses for the host name.


Get short host name.


Get NIS/YP domain name.