grub-script-check
check grub.cfg for syntax errors
TLDR
Check a specific script file for syntax errors
$ grub-script-check [path/to/grub_config_file]
Display each line of input after reading it
$ grub-script-check --verbose
Display version
$ grub-script-check --version
Display help
$ grub-script-check --help
SYNOPSIS
grub-script-check [OPTION...] [PATH]
DESCRIPTION
Checks GRUB script configuration file for syntax errors.
- -v, --verbose
-
print verbose messages.
- -?, --help
-
give this help list
- --usage
-
give a short usage message
- -V, --version
-
print program version
REPORTING BUGS
Report bugs to <bug-grub@gnu.org>.
SEE ALSO
grub-mkconfig(8) The full documentation for grub-script-check is maintained as a Texinfo manual. If the info and grub-script-check programs are properly installed at your site, the command info grub-script-check should give you access to the complete manual.