Linux hostid command

Updated: 05/04/2019 by Computer Hope
hostid command

On Unix-like operating systems, the hostid command the host identification number for the system. This unique number is based on the machine's IP address, and is represented in hexadecimal.

This document describes the GNU/Linux version of hostid.

Syntax

hostid [option]

Options

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

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.