DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

hostname(TC)


hostname -- set or print name of current host system

Syntax

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.

See also

hostname(ADMN), gethostname(SLIB), sethostname(SLIB), uname(C).

Standards conformance

hostname is conformant with X/Open Portability Guide, Issue 4, 1992.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005