BSD 4_3_Tahoe development
[unix-history] / usr / man / cat1 / hostname.0
CommitLineData
362b077f
C
1
2
3
4HOSTNAME(1) UNIX Programmer's Manual HOSTNAME(1)
5
6
7
8N\bNA\bAM\bME\bE
9 h\bho\bos\bst\btn\bna\bam\bme\be - set or print name of current host system
10
11S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
12 h\bho\bos\bst\btn\bna\bam\bme\be [-s] [nameofhost]
13
14D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
15 _\bH_\bo_\bs_\bt_\bn_\ba_\bm_\be prints the name of the current host. The super-
16 user can set the hostname by supplying an argument; this is
17 usually done in the network initialization script
18 /_\be_\bt_\bc/_\bn_\be_\bt_\bs_\bt_\ba_\br_\bt, normally run at boot time. The -_\bs option
19 trims any domain information from the printed name.
20
21S\bSE\bEE\bE A\bAL\bLS\bSO\bO
22 gethostname(2), sethostname(2)
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63Printed 7/9/88 July 9, 1988 1
64
65
66