]> git.ipfire.org Git - thirdparty/util-linux.git/blame - misc-utils/hostid.1
Imported from util-linux-2.7.1 tarball.
[thirdparty/util-linux.git] / misc-utils / hostid.1
CommitLineData
6dbe3af9
KZ
1.TH hostid 1
2.SH NAME
3hostid \- set or print system's host id.
4.SH SYNTAX
5.B hostid
6[\-v] [\|\fIdecimal-id\fR\|]
7.SH DESCRIPTION
8.\".NXR "hostid command"
9The
10.B hostid
11command prints the current host id number in hexadecimal and both
12decimal and hexadecimal in parenthesis if the \-v option is given.
13This numeric value is expected to be unique across all hosts
14and is normally set to resemble the host's Internet address.
15
16Only the super-user can set the hostid by giving an argument. This value is
17stored in the file /etc/hostid and need only be performed once.
18
19.SH AUTHOR
20Hostid is written by Mitch DSouza \- (m.dsouza@mrc-apu.cam.ac.uk)
21
22.SH SEE ALSO
23gethostid(2), sethostid(2)