hostname(1C) TCP/IP 5.4.2 hostname(1C)
NAME
hostname - set or print name of current host system
SYNOPSIS
hostname [ nameofhost ]
DESCRIPTION
The hostname command (without an argument) prints the name of the
current host. The superuser can set the nameofhost by specifying an
argument. When the nameofhost is specified the command also sets the
nodename for the system. The nodename can also be displayed with the
uname command and is typically used with communication protocols
other than TCP/IP, such as, uucp. The parameter used at boot time is
defined in
/etc/tcpip.params
and is used in
/usr/sbin/init.d/rc.tcpipport
SEE ALSO
uname(1), gethostname(2), sethostname(2), uname(2).
Licensed material--property of copyright holder(s) 1