From f28e0674b7722428f7f9626a0d45444001b964d8 Mon Sep 17 00:00:00 2001 From: Jason McIntyre Date: Thu, 10 Sep 2009 16:20:13 +0000 Subject: improve DESCRIPTION: note that hostname(1) can actually set the hostname, like its description says it can; --- bin/hostname/hostname.1 | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'bin/hostname') diff --git a/bin/hostname/hostname.1 b/bin/hostname/hostname.1 index f9c269dae12..6e8ee4f7d30 100644 --- a/bin/hostname/hostname.1 +++ b/bin/hostname/hostname.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: hostname.1,v 1.19 2007/05/31 19:19:14 jmc Exp $ +.\" $OpenBSD: hostname.1,v 1.20 2009/09/10 16:20:12 jmc Exp $ .\" $NetBSD: hostname.1,v 1.11 1995/09/07 06:28:39 jtc Exp $ .\" .\" Copyright (c) 1983, 1988, 1990, 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)hostname.1 8.2 (Berkeley) 4/28/95 .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: September 10 2009 $ .Dt HOSTNAME 1 .Os .Sh NAME @@ -43,11 +43,16 @@ .Sh DESCRIPTION The .Nm -utility prints the name of the current host. -The superuser can set the host name by supplying a -.Pa /etc/myname -file. -This is used at system boot time by +utility is used to set or print the name of the current host. +If no argument is given, +the name of the current host is printed. +.Pp +The host name can be set by the superuser either by specifying +.Ar name-of-host , +or by supplying a +.Xr myname 5 +file, +which is used at system boot time by .Xr netstart 8 to initialize the hostname. .Pp -- cgit v1.2.3