document distributed with 4.2BSD
[unix-history] / usr / src / bin / hostname / hostname.1
CommitLineData
0b6ba29a
KM
1.\" Copyright (c) 1983 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
c632514d 5.\" @(#)hostname.1 6.1 (Berkeley) %G%
0b6ba29a 6.\"
c632514d 7.TH HOSTNAME 1 ""
0b6ba29a
KM
8.UC 5
9.SH NAME
10hostname \- set or print name of current host system
11.SH SYNOPSIS
12.B hostname
13[ nameofhost ]
14.SH DESCRIPTION
15The
16.I hostname
17command prints the name of the current host, as given before the
18``login'' prompt.
19The super-user can set the hostname by giving an argument; this
20is usually done in the startup script /etc/rc.local.
21.SH SEE ALSO
22gethostname(2), sethostname(2)