Use Linux efibootmgr Command to Manage UEFI Boot Menu
You can install it as always via the terminal
sudo apt install efibootmgr #Debian based
sudo dnf install efibootmgr #Fedora
sudo zypper install efibootmgr #SUSE/OpenSUSE
Furthermore
# Display current boot order
efibootmgr
# Set the boot order to boot from the USB drive first
efibootmgr -o 0,80
# Add a new boot entry for a Linux distribution
efibootmgr -c -d /dev/sdb -p 2 -L "Linux" -l "\EFI\linux\vmlinuz.efi"
# Remove a boot entry
efibootmgr -b 0001 -B
Note that these examples assume that efibootmgr is installed on the system and that the user has the necessary permissions to run the command. Also, the actual device paths and boot entries may vary depending on the specific system configuration.
# Display verbose information about current boot entries
efibootmgr -v
This command will display detailed information about each boot entry, including the boot order, the device path, the file path, and the label. This can be useful for troubleshooting boot issues or for identifying specific boot entries.
Here is an example of the output you could expect:
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0003,0002,0001
Boot0000* Windows Boot Manager HD(1,GPT,d6a5f6c5-6b4c-4dca-b566-50f9581403e6,0x800,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)
Boot0001* ubuntu HD(1,GPT,d6a5f6c5-6b4c-4dca-b566-50f9581403e6,0x800,0x32000)/File(\EFI\ubuntu\shimx64.efi)
Boot0002* Hard Drive BBS(HD,,0x0)
Boot0003* CD/DVD Drive BBS(CDROM,,0x0)
This output shows the boot current, boot timeout, boot order, and information on each boot entry. BootCurrent shows the entry that is currently being used to boot the system. Timeout is the time in seconds for which the system waits for user input before booting the default entry. BootOrder is the order in which the system looks for boot entries. The first entry that is found will be booted. Each Boot entry shows its name, device, file path, and label.
Please note that the output shown here is just an example and the output will vary based on the system.
To get further info you can use cht.sh as I've showed this tutorial
Source: https://www.linuxbabe.com/command-line/how-to-use-linux-efibootmgr-examples