GRUB-SET-DEFAULT(8)

๐Ÿ’– GRUB-SET-DEFAULT ๐Ÿ’–

okay bestie, welcome to the GRUB-SET-DEFAULT(8) page from the System Administration Utilities collection, and lemme tell you, this one is short, sweet, and extremely powerful. it's the little tool that decides which boot entry your computer picks by default. that's main character energy for real. ๐Ÿ’…


โœจ NAME โœจ

grub-set-default โ€” set the saved default boot entry for GRUB ๐ŸŽ€


๐ŸŒธ SYNOPSIS ๐ŸŒธ

grub-set-default [OPTION] MENU_ENTRY

๐Ÿ‘‘ DESCRIPTION ๐Ÿ‘‘

so basically, this sets the default boot menu entry for GRUB. that's the one it'll auto-pick when the menu times out. it's giving "choose your own adventure" but the choice is permanent-ish. โœจ

โš ๏ธ HEADS UP BESTIE: this only works if you've set GRUB_DEFAULT=saved in /etc/default/grub. no that line, no vibes. this command literally requires it. don't skip it fr fr. ๐Ÿ˜ญ
  • -h, --help โ€” prints this message and bails out. the classic "wait what does this do again" button ๐Ÿซถ
  • -V, --version โ€” prints the version info and exits. flex the version, then leave ๐ŸŒˆ
  • --boot-directory=DIR โ€” tells it to look for the GRUB images under DIR/grub instead of the usual /boot/grub directory. iykyk for when your boot stuff lives somewhere custom ๐Ÿ’€

and about that MENU_ENTRY argument โ€” it's not just a number, bestie. it can be:

  • a number ๐Ÿ”ข
  • a menu item title ๐Ÿ“
  • or a menu item identifier ๐Ÿท๏ธ

so you've got options, literally. slay. ๐Ÿ’œ


๐Ÿฆ‹ REPORTING BUGS ๐Ÿฆ‹

found a bug? not the vibe, but okay, tell the devs: bug-grub@gnu.org. they'll handle it. ๐Ÿ›


๐Ÿ’ซ SEE ALSO ๐Ÿ’ซ

also!! the full documentation for grub-set-default lives in a Texinfo manual. if the info and grub-set-default programs are properly installed on your system, then this command:

info grub-set-default

should give you access to the complete manual. go get that lore ๐Ÿ“šโœจ


and that's the whole page, babe. no cap, that was it. ๐Ÿ“

this icon of a manpage is from GRUB 2.14-2ubuntu3 and it was dated July 2026 โ€” big legacy, big slay, periodt. ๐Ÿ’–๐Ÿงšโ€โ™€๏ธ

๐Ÿ“ฆ where this page comes from