GRUB-SET-DEFAULT(8)

πŸ’– GRUB-SET-DEFAULT πŸ’–

ok so this is a page from the System Administration Utilities manual, and it's all about grub-set-default β€” the little guy that tells GRUB which boot entry to pick. sit down bestie, this is a short one but it's important, no cap. πŸŽ€


✨ NAME ✨

grub-set-default β€” set the saved default boot entry for GRUB πŸ‘‘


🌸 SYNOPSIS 🌸

grub-set-default [OPTION] MENU_ENTRY

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so literally what this does: it sets the default boot menu entry for GRUB. That's the thing that decides which entry gets booted when you don't touch anything. main character energy for your bootloader, honestly. πŸ’…

⚠️ but bestie, listen β€” this requires you to have set GRUB_DEFAULT=saved in /etc/default/grub. if you didn't do that, this whole vibe does not work. it's giving "prerequisites, babe." 😭

here are the options, and yes we're going through all of them:

  • -h, --help β€” print this message and exit. the classic "wait what does this do again" button 🫢
  • -V, --version β€” print the version information and exit. for when you need to know exactly which GRUB you're dealing with ✨
  • --boot-directory=DIR β€” expect GRUB images under the directory DIR/grub2 instead of the /boot/grub2 directory. so like, if your GRUB lives somewhere else, this is how you tell it πŸ“

and then there's MENU_ENTRY, which is not an option, it's the whole point. it can be:

  • a number πŸ”’
  • a menu item title πŸ“
  • or a menu item identifier 🏷️

any of those three, your choice, slay.


πŸ› REPORTING BUGS πŸ›

found a bug? report it to <bug-grub@gnu.org>. be nice, they're doing their best πŸ’œ


πŸ‘€ SEE ALSO πŸ‘€

also!! the full documentation for grub-set-default is maintained as a Texinfo manual. if the info and grub-set-default programs are properly installed at your site, this command:

info grub-set-default

should give you access to the complete manual. go read it, it's giving scholarly πŸ“šβœ¨


and that's the whole thing, bestie. this page is from GRUB 2.12, dated April 2026 β€” so go forth and set your default boot entry, you absolute icon. periodt. πŸ’–πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from