efibootmgr:tldr:ee912
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 usingsudo
, 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 withefibootmgr
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 numbers0002
,0008
,0001
, and0005
.
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}
.