Commit | Line | Data |
---|---|---|
83513774 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 | .\" | |
192cc2dd | 5 | .\" @(#)hostid.1 6.2 (Berkeley) %G% |
83513774 | 6 | .\" |
f5745cb2 | 7 | .TH HOSTID 1 "" |
83513774 KM |
8 | .UC 5 |
9 | .SH NAME | |
10 | hostid \- set or print identifier of current host system | |
11 | .SH SYNOPSIS | |
12 | .B hostid | |
13 | [ identifier ] | |
14 | .SH DESCRIPTION | |
15 | The | |
16 | .I hostid | |
17 | command prints the identifier of the current host in hexadecimal. | |
18 | This numeric value is expected to be unique across all hosts and | |
192cc2dd | 19 | is commonly set to the host's Internet address. |
83513774 | 20 | The super-user can set the hostid by giving a hexadecimal |
192cc2dd JB |
21 | argument or the hostname; |
22 | this is usually done in the startup script /etc/rc.local. | |
83513774 KM |
23 | .SH SEE ALSO |
24 | gethostid(2), sethostid(2) |