Commit | Line | Data |
---|---|---|
ed77ebd8 KB |
1 | .\" Copyright (c) 1983, 1988 Regents of the University of California. |
2 | .\" All rights reserved. | |
0b6ba29a | 3 | .\" |
ed77ebd8 | 4 | .\" Redistribution and use in source and binary forms are permitted |
57a981eb KB |
5 | .\" provided that the above copyright notice and this paragraph are |
6 | .\" duplicated in all such forms and that any documentation, | |
7 | .\" advertising materials, and other materials related to such | |
8 | .\" distribution and use acknowledge that the software was developed | |
9 | .\" by the University of California, Berkeley. The name of the | |
10 | .\" University may not be used to endorse or promote products derived | |
11 | .\" from this software without specific prior written permission. | |
12 | .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
13 | .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
14 | .\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
ed77ebd8 | 15 | .\" |
ca67e7b4 | 16 | .\" @(#)hostname.1 6.3 (Berkeley) 7/9/88 |
0b6ba29a | 17 | .\" |
ca67e7b4 | 18 | .TH HOSTNAME 1 "July 9, 1988" |
0b6ba29a KM |
19 | .UC 5 |
20 | .SH NAME | |
ed77ebd8 | 21 | \fBhostname\fP \- set or print name of current host system |
0b6ba29a | 22 | .SH SYNOPSIS |
ed77ebd8 | 23 | \fBhostname\fP [-s] [nameofhost] |
0b6ba29a | 24 | .SH DESCRIPTION |
ed77ebd8 KB |
25 | \fIHostname\fP prints the name of the current host. The super-user can |
26 | set the hostname by supplying an argument; this is usually done in the | |
27 | network initialization script \fI/etc/netstart\fP, normally run at boot | |
28 | time. The \fI-s\fP option trims any domain information from the printed | |
29 | name. | |
0b6ba29a KM |
30 | .SH SEE ALSO |
31 | gethostname(2), sethostname(2) |