grub-entries(8)
| GRUB-ENTRIES(8) | System Manager's Manual | GRUB-ENTRIES(8) |
NAME
grub-entries - simple script for show grub menu and check menu items
SYNOPSIS
grub-entries [options]
DESCRIPTION
grub-entries parse specified or default grub config file, list all grub menu items in the one of the three forms. Also can search specified item in menu and returns 0, if this item exists, otherwise returns non-zero value. By default, /boot/grub/grub.cfg config file used.
In default output mode, menu items that match the saved default entry (set by grub-set-default(8)) are marked with *, and items that match the next boot entry (set by grub-reboot(8)) are marked with N. If an entry matches both, both markers are shown (* N). The markers appear between the item number and the title. Entries are matched by number, title, or menuentry id.
OPTIONS
- -f, --config filename
- Specify path to the grub config.
- -e, --env filename
- Specify path to the grub environment file. By default, grubenv in the same directory as the grub config is used.
- -n, --numbers
- Show only menu item sequence numbers.
- -t, --titles
- Show only menu item names.
- -c, --check menuitem
- Specify menu item to validate.
- -V, --version
- Show script version and exit.
- -h, --help
- Show help message and exit.
FILES
- /boot/grub/grub.cfg
- Default grub configuration file.
- /boot/grub/grubenv
- Default grub environment file (read via grub-editenv(1)).
AUTHORS
Leonid Krivoshein <klark@altlinux.org>
SEE ALSO
| Febrary 2019 | grub-entries (ALT Linux Team) |
