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.
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.