BSD 4_4_Lite2 development
[unix-history] / usr / share / man / cat1 / hostname.0
CommitLineData
32424d04
C
1HOSTNAME(1) BSD Reference Manual HOSTNAME(1)
2
3N\bNA\bAM\bME\bE
4 h\bho\bos\bst\btn\bna\bam\bme\be - set or print name of current host system
5
6S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
7 h\bho\bos\bst\btn\bna\bam\bme\be [-\b-s\bs] [_\bn_\ba_\bm_\be_\b-_\bo_\bf_\b-_\bh_\bo_\bs_\bt]
8
9D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
10 H\bHo\bos\bst\btn\bna\bam\bme\be prints the name of the current host. The super-user can set the
11 hostname by supplying an argument; this is usually done in the network
12 initialization script _\b/_\be_\bt_\bc_\b/_\bn_\be_\bt_\bs_\bt_\ba_\br_\bt, normally run at boot time.
13
14 Options:
15
16 -\b-s\bs Trims off any domain information from the printed name.
17
18S\bSE\bEE\bE A\bAL\bLS\bSO\bO
19 gethostname(2), sethostname(2)
20
21H\bHI\bIS\bST\bTO\bOR\bRY\bY
22 The h\bho\bos\bst\btn\bna\bam\bme\be command appeared in 4.2BSD.
23
244.2 Berkeley Distribution April 28, 1995 1