Commit | Line | Data |
---|---|---|
d9d7a9f0 | 1 | .\" Copyright (c) 1983, 1988, 1990 The Regents of the University of California. |
ed77ebd8 | 2 | .\" All rights reserved. |
0b6ba29a | 3 | .\" |
27c71911 | 4 | .\" %sccs.include.redist.man% |
ed77ebd8 | 5 | .\" |
5325ced3 | 6 | .\" @(#)hostname.1 6.6 (Berkeley) %G% |
0b6ba29a | 7 | .\" |
d9d7a9f0 CL |
8 | .Dd |
9 | .Dt HOSTNAME 1 | |
10 | .Os BSD 4.2 | |
11 | .Sh NAME | |
12 | .Nm hostname | |
13 | .Nd set or print name of current host system | |
14 | .Sh SYNOPSIS | |
15 | .Nm hostname | |
16 | .Op Fl s | |
17 | .Op Ar nameofhost | |
18 | .Sh DESCRIPTION | |
19 | .Nm Hostname | |
20 | prints the name of the current host. The super-user can | |
ed77ebd8 | 21 | set the hostname by supplying an argument; this is usually done in the |
d9d7a9f0 CL |
22 | network initialization script |
23 | .Pa /etc/netstart , | |
24 | normally run at boot | |
25 | time. | |
26 | .Pp | |
27 | Options: | |
5325ced3 | 28 | .Tw Ds |
d9d7a9f0 CL |
29 | .Tp Fl s |
30 | Trims off any domain information from the printed | |
ed77ebd8 | 31 | name. |
d9d7a9f0 CL |
32 | .Tp |
33 | .Sh SEE ALSO | |
5325ced3 | 34 | .Xr gethostname 2 |
d9d7a9f0 CL |
35 | .Sh HISTORY |
36 | .Nm Hostname | |
37 | appeared in 4.2 BSD. |