BSD 4_4_Lite2 development
[unix-history] / usr / share / man / cat1 / hostname.0
HOSTNAME(1) BSD Reference Manual HOSTNAME(1)
N\bNA\bAM\bME\bE
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 [-\b-s\bs] [_\bn_\ba_\bm_\be_\b-_\bo_\bf_\b-_\bh_\bo_\bs_\bt]
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
H\bHo\bos\bst\btn\bna\bam\bme\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 _\b/_\be_\bt_\bc_\b/_\bn_\be_\bt_\bs_\bt_\ba_\br_\bt, normally run at boot time.
Options:
-\b-s\bs Trims off any domain information from the printed name.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
gethostname(2), sethostname(2)
H\bHI\bIS\bST\bTO\bOR\bRY\bY
The h\bho\bos\bst\btn\bna\bam\bme\be command appeared in 4.2BSD.
4.2 Berkeley Distribution April 28, 1995 1