{
    "mode": "info",
    "parameter": "SYSTEMD-ID128",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/info/SYSTEMD-ID128/json",
    "generated": "2026-07-05T11:43:54Z",
    "synopsis": "systemd-id128 [OPTIONS...] new\nsystemd-id128 [OPTIONS...] machine-id\nsystemd-id128 [OPTIONS...] boot-id\nsystemd-id128 [OPTIONS...] invocation-id",
    "sections": {
        "NAME": {
            "content": "systemd-id128 - Generate and print sd-128 identifiers\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "systemd-id128 [OPTIONS...] new\n\nsystemd-id128 [OPTIONS...] machine-id\n\nsystemd-id128 [OPTIONS...] boot-id\n\nsystemd-id128 [OPTIONS...] invocation-id\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "id128 may be used to conveniently print sd-id128(3) UUIDs. What\nidentifier is printed depends on the specific verb.\n\nWith new, a new random identifier will be generated.\n\nWith machine-id, the identifier of the current machine will be printed.\nSee machine-id(5).\n\nWith boot-id, the identifier of the current boot will be printed.\n\nBoth machine-id and boot-id may be combined with the\n--app-specific=app-id switch to generate application-specific IDs. See\nsdid128getmachine(3) for the discussion when this is useful.\n\nWith invocation-id, the identifier of the current service invocation\nwill be printed. This is available in systemd services. See\nsystemd.exec(5).\n\nWith show, well-known UUIDs are printed. When no arguments are\nspecified, all known UUIDs are shown. When arguments are specified,\nthey must be the names or values of one or more known UUIDs, which are\nthen printed.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "The following options are understood:\n",
            "subsections": [
                {
                    "name": "-p, --pretty",
                    "content": "Generate output as programming language snippets.\n\n-a app-id, --app-specific=app-id\nWith this option, an identifier that is the result of hashing the\napplication identifier app-id and the machine identifier will be\nprinted. The app-id argument must be a valid sd-id128 string\nidentifying the application.\n",
                    "flag": "-p",
                    "long": "--pretty"
                },
                {
                    "name": "-u, --uuid",
                    "content": "Generate output as an UUID formatted in the \"canonical\nrepresentation\", with five groups of digits separated by hyphens.\nSee the wikipedia[1] for more discussion.\n",
                    "flag": "-u",
                    "long": "--uuid"
                },
                {
                    "name": "-h, --help",
                    "content": "Print a short help text and exit.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "--version",
                    "content": "Print a short version string and exit.\n",
                    "long": "--version"
                }
            ]
        },
        "EXIT STATUS": {
            "content": "On success, 0 is returned, a non-zero failure code otherwise.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "systemd(1), sd-id128(3), sdid128getmachine(3)\n",
            "subsections": []
        },
        "NOTES": {
            "content": "1. wikipedia\nhttps://en.wikipedia.org/wiki/Universallyuniqueidentifier#Format\n\nsystemd 249                                                   SYSTEMD-ID128(1)",
            "subsections": []
        }
    },
    "summary": "systemd-id128 - Generate and print sd-128 identifiers",
    "flags": [
        {
            "flag": "-p",
            "long": "--pretty",
            "arg": null,
            "description": "Generate output as programming language snippets. -a app-id, --app-specific=app-id With this option, an identifier that is the result of hashing the application identifier app-id and the machine identifier will be printed. The app-id argument must be a valid sd-id128 string identifying the application."
        },
        {
            "flag": "-u",
            "long": "--uuid",
            "arg": null,
            "description": "Generate output as an UUID formatted in the \"canonical representation\", with five groups of digits separated by hyphens. See the wikipedia[1] for more discussion."
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Print a short help text and exit."
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "Print a short version string and exit."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "systemd",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/systemd/1/json"
        },
        {
            "name": "sd-id128",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/sd-id128/3/json"
        },
        {
            "name": "sdid128getmachine",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/sdid128getmachine/3/json"
        }
    ]
}