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

grub-set-default — Set the default boot entry for GRUB. More information: <https://manned.org/grub-set-default>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandbootcligrub-set-defaultentrysetdefault
linux

Problem

How to use the grub-set-default command: Set the default boot entry for GRUB. More information: <https://manned.org/grub-set-default>.

Solution

grub-set-default — Set the default boot entry for GRUB. More information: <https://manned.org/grub-set-default>.

Set the default boot entry to an entry number, name, or identifier:
sudo grub-set-default {{entry_number}}


Set the default boot entry to an entry number, name, or identifier for an alternative boot directory:
sudo grub-set-default --boot-directory /{{path/to/boot_directory}} {{entry_number}}

Code Snippets

Set the default boot entry to an entry number, name, or identifier

sudo grub-set-default {{entry_number}}

Set the default boot entry to an entry number, name, or identifier for an alternative boot directory

sudo grub-set-default --boot-directory /{{path/to/boot_directory}} {{entry_number}}

Context

tldr-pages: linux/grub-set-default

Revisions (0)

No revisions yet.