{
    "mode": "man",
    "parameter": "grub-script-check",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/grub-script-check/1/json",
    "generated": "2026-06-15T14:37:49Z",
    "synopsis": "grub-script-check [OPTION...] [PATH]",
    "sections": {
        "NAME": {
            "content": "grub-script-check - check grub.cfg for syntax errors\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "grub-script-check [OPTION...] [PATH]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Checks GRUB script configuration file for syntax errors.\n",
            "subsections": [
                {
                    "name": "-v --verbose",
                    "content": "print verbose messages.\n\n-?, --help\ngive this help list\n",
                    "flag": "-v",
                    "long": "--verbose"
                },
                {
                    "name": "--usage",
                    "content": "give a short usage message\n",
                    "long": "--usage"
                },
                {
                    "name": "-V --version",
                    "content": "print program version\n",
                    "flag": "-V",
                    "long": "--version"
                }
            ]
        },
        "REPORTING BUGS": {
            "content": "Report bugs to <bug-grub@gnu.org>.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "grub-mkconfig(8)\n\nThe  full documentation for grub-script-check is maintained as a Texinfo manual.  If the info\nand grub-script-check programs are properly installed at your site, the command\n\ninfo grub-script-check\n\nshould give you access to the complete manual.\n\n\n\nGRUB 2.06-2ubuntu7.2                        December 2022                       GRUB-SCRIPT-CHECK(1)",
            "subsections": []
        }
    },
    "summary": "grub-script-check - check grub.cfg for syntax errors",
    "flags": [
        {
            "flag": "-v",
            "long": "--verbose",
            "arg": null,
            "description": "print verbose messages. -?, --help give this help list"
        },
        {
            "flag": "",
            "long": "--usage",
            "arg": null,
            "description": "give a short usage message"
        },
        {
            "flag": "-V",
            "long": "--version",
            "arg": null,
            "description": "print program version"
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "grub-mkconfig",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/grub-mkconfig/8/json"
        },
        {
            "name": "GRUB-SCRIPT-CHECK",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/GRUB-SCRIPT-CHECK/1/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "The program `grub-script-check` takes a GRUB script file and checks it for syntax errors.",
        "examples": [
            {
                "description": "Check a specific script file for syntax errors",
                "command": "grub-script-check {{path/to/grub_config_file}}"
            },
            {
                "description": "Display each line of input after reading it",
                "command": "grub-script-check {{-v|--verbose}}"
            },
            {
                "description": "Display help",
                "command": "grub-script-check --help"
            },
            {
                "description": "Display version",
                "command": "grub-script-check --version"
            }
        ]
    }
}