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