grub-set-default(8)

grub-set-default8

Set the saved default boot entry for grub

Usage

grub-set-default [OPTION] MENU_ENTRY

Overview

Set the default boot menu entry for GRUB. This requires setting GRUB_DEFAULT=saved in /etc/default/grub.

-h, --help

print this message and exit

-V, --version

print the version information and exit

--boot-directory=DIR

expect GRUB images under the directory DIR/grub instead of the /boot/grub directory

MENU_ENTRY is a number, a menu item title or a menu item identifier.

Releases

9 releases since Debian 6.0 (Squeeze); the text changed 8 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13
  9. Arch

--boot-directory since Debian 7 (Wheezy); -V since Debian 9 (Stretch).

--root-directory until Debian 6.0 (Squeeze); -v until Debian 8 (Jessie).

Reporting bugs

Report bugs to <[email protected]>.

From grub 2:2.16-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.