hostname - print name of current host system
hostname [-a] | [-i] | [-s]
The hostname(1) utility prints the name of the current host. Unlike traditional implementations, this version cannot be used to set the host name. See Windows Help for instructions on setting the host name.
gethostname(2)