mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-30 11:41:34 +00:00
18 lines
513 B
Plaintext
18 lines
513 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|