You are here: >

Linux and Unix hostid command

hostid commandAbout hostid
hostid syntax
hostid examples
Related commands
Linux and Unix main page

About hostid

The hostid program outputs a number (the "host identification number" or "hostid") which identifies the current system. This unique number based on the machine's IPv4 network address, and is represented in hexadecimal.

hostid syntax

hostid [option]

Options

--help display help, and exit.
--version display version information, and exit.

hostid examples

hostid

Performing the above command would display the current host's numerical id, for example:

46a603ch

hostname — Print the numeric identifier for the current host.