{
    "content": [
        {
            "type": "text",
            "text": "# grub-set-default (man)\n\n## NAME\n\ngrub-set-default - set the saved default boot entry for GRUB\n\n## SYNOPSIS\n\ngrub-set-default [OPTION] MENUENTRY\n\n## DESCRIPTION\n\nSet  the  default  boot  menu  entry  for  GRUB.  This requires setting GRUBDEFAULT=saved in\n/etc/default/grub.\n\n## TLDR\n\n> Set the default boot entry for GRUB.\n\n- Set the default boot entry to an entry number, name, or identifier:\n  `sudo grub-set-default {{entry_number}}`\n- Set the default boot entry to an entry number, name, or identifier for an alternative boot directory:\n  `sudo grub-set-default --boot-directory /{{path/to/boot_directory}} {{entry_number}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION** (2 subsections)\n- **REPORTING BUGS**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "grub-set-default",
        "section": "",
        "mode": "man",
        "summary": "grub-set-default - set the saved default boot entry for GRUB",
        "synopsis": "grub-set-default [OPTION] MENUENTRY",
        "tldr_summary": "Set the default boot entry for GRUB.",
        "tldr_examples": [
            {
                "description": "Set the default boot entry to an entry number, name, or identifier",
                "command": "sudo grub-set-default {{entry_number}}"
            },
            {
                "description": "Set the default boot entry to an entry number, name, or identifier for an alternative boot directory",
                "command": "sudo grub-set-default --boot-directory /{{path/to/boot_directory}} {{entry_number}}"
            }
        ],
        "tldr_source": "official",
        "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"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": [
                    {
                        "name": "-h --help",
                        "lines": 2,
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "-V --version",
                        "lines": 7,
                        "flag": "-V",
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "REPORTING BUGS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 12,
                "subsections": []
            }
        ],
        "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": []
            }
        }
    }
}