Commit | Line | Data |
---|---|---|
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 | |
10 | hostname \- set or print name of current host system | |
11 | .SH SYNOPSIS | |
12 | .B hostname | |
13 | [ nameofhost ] | |
14 | .SH DESCRIPTION | |
15 | The | |
16 | .I hostname | |
17 | command prints the name of the current host, as given before the | |
18 | ``login'' prompt. | |
19 | The super-user can set the hostname by giving an argument; this | |
20 | is usually done in the startup script /etc/rc.local. | |
21 | .SH SEE ALSO | |
22 | gethostname(2), sethostname(2) |