Only used for GRUB2, grub-mkconfig will generate GRUB2 configuration files from the user-editable files located in the /etc directory structure. This command converts data from the /etc/default/grub file and the files in the /etc/grub.d directory into the GRUB2 configuration file (either /boot/grub/grub.cfg or /boot/grub/menu.lst).
Note: On some systems, the command name is grub2-mkconfig.
Command Options | Descriptions |
-o, –output=FILE | output generated config to FILE [default=stdout] |
-h, –help | print this message and exit |
-v, –version | print the version information and exit |