DEV Community

Cover image for Change default entry on GRUB menu
Sergio Peris
Sergio Peris

Posted on â€ĸ Originally published at sertxu.dev

Change default entry on GRUB menu

By default, the first element in the GRUB menu will be selected after the seconds at GRUB_TIMEOUT has passed.

In order to change the default selection we need to modify the GRUB_DEFAULT property at /etc/default/grub.

All the entries at the GRUB menu are numbered starting from 0.
So if our menu looks like the following:

Ubuntu
Advanced options for Ubuntu
Memory test (memtest86+64.efi)
Memory test (memtest86+64.efi, serial console)
UEFI Firmware Settings
Windows 10
Enter fullscreen mode Exit fullscreen mode

If we want to make the Windows 10 entry the default one, we should set the value as 5.

sudo vi /etc/grub/default
Enter fullscreen mode Exit fullscreen mode
GRUB_DEFAULT=5
Enter fullscreen mode Exit fullscreen mode

Once you've made all the changes, you should apply them by running the following command.

sudo update-grub
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Playwright CLI Flags Tutorial

5 Playwright CLI Flags That Will Transform Your Testing Workflow

  • 0:56 --last-failed: Zero in on just the tests that failed in your previous run
  • 2:34 --only-changed: Test only the spec files you've modified in git
  • 4:27 --repeat-each: Run tests multiple times to catch flaky behavior before it reaches production
  • 5:15 --forbid-only: Prevent accidental test.only commits from breaking your CI pipeline
  • 5:51 --ui --headed --workers 1: Debug visually with browser windows and sequential test execution

Learn how these powerful command-line options can save you time, strengthen your test suite, and streamline your Playwright testing experience. Click on any timestamp above to jump directly to that section in the tutorial!

Watch Full Video 📹ī¸