hostname(1bsd)
hostname --
set or print name of current host system
Synopsis
/usr/ucb/hostname [ -s ] [ nameofhost ]
Description
hostname prints the name of the current host.
root can set the hostname by giving an argument;
this is usually done at boot time in the network
initialization script. The -s option trims any
domain information from the printed name.
References
gethostname(3bsd),
sethostname(3bsd),
uname(1)
Standards compliance
hostname is conformant with X/Open Portability Guide, Issue 4, 1992.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004