2017-06-03 19:27:30 +00:00
|
|
|
.Dd October 5, 2015
|
2015-10-05 22:32:45 +00:00
|
|
|
.Dt HOSTNAME 5
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm hostname
|
|
|
|
.Nd initial hostname
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm /etc/hostname
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm hostname
|
|
|
|
file is read on boot by
|
|
|
|
.Xr init 8
|
2017-02-15 21:56:28 +00:00
|
|
|
and is used as the system hostname.
|
|
|
|
No hostname is set if the file is missing and the hostname remains the kernel
|
|
|
|
default.
|
2015-10-05 22:32:45 +00:00
|
|
|
.Sh FORMAT
|
|
|
|
The file must contain a valid hostname and no whitespace on a single line.
|
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width "/etc/hostname" -compact
|
|
|
|
.It Pa /etc/hostname
|
|
|
|
System hostname.
|
|
|
|
.El
|
|
|
|
.Sh EXAMPLES
|
|
|
|
.Bd -literal
|
|
|
|
dragon
|
|
|
|
.Ed
|
|
|
|
.Sh SEE ALSO
|
2017-03-19 16:00:08 +00:00
|
|
|
.Xr hostname 1 ,
|
|
|
|
.Xr gethostname 2 ,
|
2015-10-05 22:32:45 +00:00
|
|
|
.Xr sethostname 2 ,
|
|
|
|
.Xr init 8
|