grub-script-check

The program grub-script-check takes a GRUB script file and checks it for syntax errors, similar to commands such as sh -n. It may take a path as a non-option argument; if none is supplied, it will read from standard input.

grub-script-check /boot/grub/grub.cfg



Options

--help

Print a summary of the command-line options and exit.


--version

Print the version number of GRUB and exit.


-v, --verbose

Print each line of input after reading it.