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}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.