{
    "mode": "man",
    "parameter": "GRUB-MKCONFIG",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/man/GRUB-MKCONFIG/json",
    "generated": "2026-11-12T10:59:31Z",
    "synopsis": "grub-mkconfig [OPTION]",
    "sections": {
        "NAME": {
            "content": "grub-mkconfig - generate a GRUB configuration file\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "grub-mkconfig [OPTION]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Generate a grub config file\n",
            "subsections": [
                {
                    "name": "-o --output",
                    "content": "output generated config to FILE [default=stdout]\n",
                    "flag": "-o",
                    "long": "--output"
                },
                {
                    "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",
                    "flag": "-V",
                    "long": "--version"
                }
            ]
        },
        "REPORTING BUGS": {
            "content": "Report bugs to <bug-grub@gnu.org>.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "grub-install(8)\n\nThe  full documentation for grub-mkconfig is maintained as a Texinfo manual.  If the info and\ngrub-mkconfig programs are properly installed at your site, the command\n\ninfo grub-mkconfig\n\nshould give you access to the complete manual.\n\nGRUB 2.12-1ubuntu7.3                         March 2025                             GRUB-MKCONFIG(8)",
            "subsections": []
        }
    },
    "summary": "grub-mkconfig - generate a GRUB configuration file",
    "flags": [
        {
            "flag": "-o",
            "long": "--output",
            "arg": null,
            "description": "output generated config to FILE [default=stdout]"
        },
        {
            "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"
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "grub-install",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/grub-install/8/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Generate a GRUB configuration file.",
        "examples": [
            {
                "description": "Simulate generating a GRUB configuration and print it to `stdout`",
                "command": "sudo grub-mkconfig"
            },
            {
                "description": "Generate the configuration file",
                "command": "sudo grub-mkconfig {{-o|--output}} {{/boot/grub/grub.cfg}}"
            },
            {
                "description": "Display help",
                "command": "grub-mkconfig {{-h|--help}}"
            }
        ]
    }
}