Forrest logo
back to the efibootmgr tool

efibootmgr:tldr:ee912

efibootmgr: Change the current boot order.
$ sudo efibootmgr -o ${0002,0008,0001,0005}
try on your machine

The command sudo efibootmgr -o ${0002,0008,0001,0005} is used to set the boot order in UEFI (Unified Extensible Firmware Interface) systems.

Here's a breakdown of each component:

  • sudo: It is a command used in Unix-like systems to execute a command with administrative privileges. By using sudo, the user is granted temporary root access to perform administrative tasks.

  • efibootmgr: This command is used to manipulate the EFI boot manager. It allows you to view, edit, or delete boot entries in the EFI boot manager configuration.

  • -o: It is the option used with efibootmgr to specify the new boot order. In this case, the boot order is specified as ${0002,0008,0001,0005}.

  • ${0002,0008,0001,0005}: It is a comma-separated list of boot entry numbers. Each boot entry number corresponds to a boot option in the EFI boot manager. By default, boot entry numbers are represented in hexadecimal format. In this example, the boot order is set to boot from the boot entries with numbers 0002, 0008, 0001, and 0005.

So, when this command is executed with administrative privileges, it sets the boot order in the EFI boot manager to prioritize the boot entries specified in ${0002,0008,0001,0005}.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the efibootmgr tool