The program grub-mkconfig generates a configuration file for GRUB.
grub-mkconfig -o /boot/grub/grub.cfg--helpPrint a summary of the command-line options and exit.
--versionPrint the version number of GRUB and exit.
-o file--output=fileSend the generated configuration file to file. The default is to send it to standard output.