summaryrefslogtreecommitdiff
path: root/bin/hostname
diff options
context:
space:
mode:
Diffstat (limited to 'bin/hostname')
-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