|
|
1.1 root 1: .\" Copyright (c) 1983, 1988 Regents of the University of California.
2: .\" All rights reserved.
3: .\"
4: .\" Redistribution and use in source and binary forms are permitted
5: .\" provided that the above copyright notice and this paragraph are
6: .\" duplicated in all such forms and that any documentation,
7: .\" advertising materials, and other materials related to such
8: .\" distribution and use acknowledge that the software was developed
9: .\" by the University of California, Berkeley. The name of the
10: .\" University may not be used to endorse or promote products derived
11: .\" from this software without specific prior written permission.
12: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
13: .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
14: .\" WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
15: .\"
16: .\" @(#)hostname.1 6.3 (Berkeley) 7/9/88
17: .\"
18: .TH HOSTNAME 1 "July 9, 1988"
19: .UC 5
20: .SH NAME
21: \fBhostname\fP \- set or print name of current host system
22: .SH SYNOPSIS
23: \fBhostname\fP [-s] [nameofhost]
24: .SH DESCRIPTION
25: \fIHostname\fP prints the name of the current host. The super-user can
26: set the hostname by supplying an argument; this is usually done in the
27: network initialization script \fI/etc/netstart\fP, normally run at boot
28: time. The \fI-s\fP option trims any domain information from the printed
29: name.
30: .SH SEE ALSO
31: gethostname(2), sethostname(2)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.