HOSTNAME(1) UNIX Programmer's Manual HOSTNAME(1)
h
\bho
\bos
\bst
\btn
\bna
\bam
\bme
\be - set or print name of current host system
S
\bSY
\bYN
\bNO
\bOP
\bPS
\bSI
\bIS
\bS
h
\bho
\bos
\bst
\btn
\bna
\bam
\bme
\be [-s] [nameofhost]
D
\bDE
\bES
\bSC
\bCR
\bRI
\bIP
\bPT
\bTI
\bIO
\bON
\bN
_
\bH_
\bo_
\bs_
\bt_
\bn_
\ba_
\bm_
\be prints the name of the current host. The super-
user can set the hostname by supplying an argument; this is
usually done in the network initialization script
/_
\be_
\bt_
\bc/_
\bn_
\be_
\bt_
\bs_
\bt_
\ba_
\br_
\bt, normally run at boot time. The -_
\bs option
trims any domain information from the printed name.
S
\bSE
\bEE
\bE A
\bAL
\bLS
\bSO
\bO
gethostname(2), sethostname(2)
Printed 7/9/88 July 9, 1988 1