.Dd October 8, 2015 .Dt HOSTNAME 1 .Os sbase .Sh NAME .Nm hostname .Nd set or print host name .Sh SYNOPSIS .Nm .Op Ar name .Sh DESCRIPTION .Nm sets the current host name to .Ar name . If no .Ar name is given, the current host name is written to stdout. .Sh SEE ALSO .Xr hostname 7