hostid
displays the current host's unique identifier as a 32-bit hexadecimal value
TLDR
Display the host ID
$ hostid
Show version$ hostid --version
Show help$ hostid --help
SYNOPSIS
hostid [option]
DESCRIPTION
hostid displays the current host's unique identifier as a 32-bit hexadecimal value. If /etc/hostid exists, the value stored there is printed; otherwise it is derived from the machine's hostname and IP address via the gethostid(3) function. The identifier was historically used by software licensing schemes and is largely a legacy feature on modern Linux systems.
PARAMETERS
--help
Display help and exit.--version
Display version and exit.
INSTALL
sudo apt install coreutils
sudo dnf install coreutils
sudo pacman -S coreutils
sudo apk add coreutils
sudo zypper install coreutils
brew install coreutils
nix profile install nixpkgs#coreutils
CAVEATS
The value is not guaranteed to be unique across machines, particularly when derived from a hostname rather than a fixed /etc/hostid file. It has no security value and should not be relied on as a hardware fingerprint.
