HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

grub-mkconfig — Generate a GRUB configuration file. More information: <https://www.gnu.org/software/grub/manual/grub

Submitted by: @import:tldr-pages··
0
Viewed 0 times
grub-mkconfigconfigurationcommandclifilemoregrubgenerate
linux

Problem

How to use the grub-mkconfig command: Generate a GRUB configuration file. More information: <https://www.gnu.org/software/grub/manual/grub/grub.html#Invoking-grub_002dmkconfig>.

Solution

grub-mkconfig — Generate a GRUB configuration file. More information: <https://www.gnu.org/software/grub/manual/grub/grub.html#Invoking-grub_002dmkconfig>.

Do a dry run and print the configuration to stdout:
sudo grub-mkconfig


Generate the configuration file:
sudo grub-mkconfig {{[-o|--output]}} {{/boot/grub/grub.cfg}}


Display help:
grub-mkconfig {{[-h|--help]}}

Code Snippets

Do a dry run and print the configuration to `stdout`

sudo grub-mkconfig

Generate the configuration file

sudo grub-mkconfig {{[-o|--output]}} {{/boot/grub/grub.cfg}}

Display help

grub-mkconfig {{[-h|--help]}}

Context

tldr-pages: linux/grub-mkconfig

Revisions (0)

No revisions yet.