{
    "mode": "man",
    "parameter": "hostid",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/hostid/1/json",
    "generated": "2026-06-02T23:35:58Z",
    "synopsis": "hostid [OPTION]",
    "sections": {
        "NAME": {
            "content": "hostid - print the numeric identifier for the current host\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "hostid [OPTION]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Print the numeric identifier (in hexadecimal) for the current host.\n\n--help display this help and exit\n",
            "subsections": [
                {
                    "name": "--version",
                    "content": "output version information and exit\n",
                    "long": "--version"
                }
            ]
        },
        "AUTHOR": {
            "content": "Written by Jim Meyering.\n",
            "subsections": []
        },
        "REPORTING BUGS": {
            "content": "GNU coreutils online help: <https://www.gnu.org/software/coreutils/>\nReport any translation bugs to <https://translationproject.org/team/>\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright  ©  2020 Free Software Foundation, Inc.  License GPLv3+: GNU GPL version 3 or later\n<https://gnu.org/licenses/gpl.html>.\nThis is free software: you are free to change and redistribute it.  There is NO WARRANTY,  to\nthe extent permitted by law.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "gethostid(3)\n\nFull documentation <https://www.gnu.org/software/coreutils/hostid>\nor available locally via: info '(coreutils) hostid invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                   HOSTID(1)",
            "subsections": []
        }
    },
    "summary": "hostid - print the numeric identifier for the current host",
    "flags": [
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "output version information and exit"
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "gethostid",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/gethostid/3/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Print the numeric identifier for the current host (not necessarily the IP address).",
        "examples": [
            {
                "description": "Display the numeric identifier for the current host in hexadecimal",
                "command": "hostid"
            }
        ]
    }
}