summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2009-09-10 16:20:13 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2009-09-10 16:20:13 +0000
commitf28e0674b7722428f7f9626a0d45444001b964d8 (patch)
tree726e927b09aff5e2265358b1a66417e7b236e4bd
parentc8d2f8ad3d4bb9dc497b4c9dc926ddb6dd5f6c8f (diff)
improve DESCRIPTION: note that hostname(1) can actually set the hostname,
like its description says it can;
-rw-r--r--bin/hostname/hostname.119
1 files changed, 12 insertions, 7 deletions
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