xref: /csrg-svn/bin/hostname/hostname.1 (revision 68981)
160669Sbostic.\" Copyright (c) 1983, 1988, 1990, 1993
260669Sbostic.\"	The Regents of the University of California.  All rights reserved.
319716Smckusick.\"
450631Scael.\" %sccs.include.redist.roff%
519716Smckusick.\"
6*68981Sbostic.\"	@(#)hostname.1	8.2 (Berkeley) 04/28/95
734656Sbostic.\"
843696Scael.Dd
943696Scael.Dt HOSTNAME 1
1043696Scael.Os BSD 4.2
1143696Scael.Sh NAME
1243696Scael.Nm hostname
1343696Scael.Nd set or print name of current host system
1443696Scael.Sh SYNOPSIS
1543696Scael.Nm hostname
1643696Scael.Op Fl s
17*68981Sbostic.Op Ar name-of-host
1843696Scael.Sh DESCRIPTION
1943696Scael.Nm Hostname
2043696Scaelprints the name of the current host.  The super-user can
2134656Sbosticset the hostname by supplying an argument; this is usually done in the
2243696Scaelnetwork initialization script
2343696Scael.Pa /etc/netstart ,
2443696Scaelnormally run at boot
2543696Scaeltime.
2643696Scael.Pp
2743696ScaelOptions:
2850631Scael.Bl -tag -width flag
2950631Scael.It Fl s
3043696ScaelTrims off any domain information from the printed
3134656Sbosticname.
3250631Scael.El
3343696Scael.Sh SEE ALSO
34*68981Sbostic.Xr gethostname 2 ,
35*68981Sbostic.Xr sethostname 2
3643696Scael.Sh HISTORY
3750631ScaelThe
3850631Scael.Nm hostname
3950631Scaelcommand appeared in
4050631Scael.Bx 4.2 .
41