Linux hostid command

Updated: 04/26/2017 by Computer Hope

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]


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

hostid examples


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


hostname — Print the numeric identifier for the current host.