Linux Manuals · Linux Manuals session 1 genhostid (1) Linux Manual Page ByLinux Manual Posted onApr 19, 2026 genhostid – generate and set a hostid for the current host Synopsisgenhostid Descriptiongenhostid generates a random hostid and stores it in /etc/hostid, if /etc/hostid does not already exist. See Alsohostid(1), gethostid(2), sethostid(2)