CompTIA Linux+ (XK0-006)System ManagementMedium
A system administrator needs to check the boot order and active boot entry for a UEFI-based Linux server. Which command should be used?
- Aefibootmgr -v
- Bbootctl status
- Cgrub-editenv list
- Dgrubby --default-entry
Show answer & explanationAnswer & explanation
Correct answer: A. efibootmgr -v
The 'efibootmgr' utility is specifically designed for managing UEFI boot entries. The '-v' option provides verbose output, showing details like boot order, active entries, and device paths.
Why the other options are wrong
- B. bootctl is used for managing systemd-boot (formerly gummiboot) entries, not generic UEFI boot entries.
- C. grub-editenv is used to edit the GRUB environment block, not directly manage UEFI boot entries.
- D. grubby is used to update and query information about GRUB configuration files, primarily for kernel entries, not UEFI firmware entries.
efibootmgr
A Linux utility that interacts with the EFI firmware to manage boot entries. It allows users to add, delete, change, and list boot entries, as well as modify the boot order.
- Requires root privileges to run.
- Operates directly on the EFI NVRAM.
- Commonly used options include -v (verbose), -o (set boot order), -a (activate entry), -b (bootnum).
Memory trick: EFI Boot Manager, very verbose for UEFI.