{
    "mode": "man",
    "parameter": "grub-set-default",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/grub-set-default/8/json",
    "generated": "2026-07-05T13:20:52Z",
    "synopsis": "grub-set-default [OPTION] MENUENTRY",
    "sections": {
        "NAME": {
            "content": "grub-set-default - set the saved default boot entry for GRUB\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "grub-set-default [OPTION] MENUENTRY\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Set  the  default  boot  menu  entry  for  GRUB.  This requires setting GRUBDEFAULT=saved in\n/etc/default/grub.\n",
            "subsections": [
                {
                    "name": "-h --help",
                    "content": "print this message and exit\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-V --version",
                    "content": "print the version information and exit\n\n--boot-directory=DIR\nexpect GRUB images under the directory DIR/grub instead of the /boot/grub directory\n\nMENUENTRY is a number, a menu item title or a menu item identifier.\n",
                    "flag": "-V",
                    "long": "--version"
                }
            ]
        },
        "REPORTING BUGS": {
            "content": "Report bugs to <bug-grub@gnu.org>.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "grub-reboot(8), grub-editenv(1)\n\nThe full documentation for grub-set-default is maintained as a Texinfo manual.  If  the  info\nand grub-set-default programs are properly installed at your site, the command\n\ninfo grub-set-default\n\nshould give you access to the complete manual.\n\n\n\nGRUB 2.06-2ubuntu7.2                        December 2022                        GRUB-SET-DEFAULT(8)",
            "subsections": []
        }
    },
    "summary": "grub-set-default - set the saved default boot entry for GRUB",
    "flags": [
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "print this message and exit"
        },
        {
            "flag": "-V",
            "long": "--version",
            "arg": null,
            "description": "print the version information and exit --boot-directory=DIR expect GRUB images under the directory DIR/grub instead of the /boot/grub directory MENUENTRY is a number, a menu item title or a menu item identifier."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "grub-reboot",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/grub-reboot/8/json"
        },
        {
            "name": "grub-editenv",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/grub-editenv/1/json"
        },
        {
            "name": "GRUB-SET-DEFAULT",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/GRUB-SET-DEFAULT/8/json"
        }
    ]
}