efibootmgr
Manipulate the UEFI Boot Manager. tldr-pages
On Linux
Linux
List all boot options with their numbers
efibootmgr --unicodeIdentifyAdd a UEFI executable (e.g. UEFI shell, Unified Kernel Image, etc.) as a boot option
sudo efibootmgr --create --disk /dev/sda --part 1 --loader "path\to\executable.efi" --label "boot_entry_name"IdentifyAdd Linux as a boot option
sudo efibootmgr --create --disk /dev/sda --part 1 --loader "path\to\vmlinuz" --unicode "root=UUID=partition_uuid rw loglevel=3 initrd=path\to\initramfs-linux.img" --label "Linux"IdentifyChange the current boot order
sudo efibootmgr --bootorder 0002,0008,0001,001A,...IdentifyDelete a boot option
sudo efibootmgr --delete-bootnum --bootnum 0008Identify