OS Manuals

/usr/bin/grub-editenv

the grand unified bootloader

From grub 2.16-r1 (enterprise-packages), captured 2026-11-08 by running grub-editenv --help (exit 0). permalink

Usage: grub-editenv [OPTION...] FILENAME COMMAND

Tool to edit environment block.

 Commands:
  create                     Create a blank environment block file.
  list                       List the current variables.
  set [NAME=VALUE ...]       Set variables.
  unset [NAME ...]           Delete variables.

 Options:
  -?, --help                 give this help list
      --usage                give a short usage message
  -v, --verbose              print verbose messages.
  -V, --version              print program version

If FILENAME is `-', the default value /boot/grub/grubenv is used.

There is no `delete' command; if you want to delete the whole environment
block, use `rm /boot/grub/grubenv'.

Report bugs to <bug-grub@gnu.org>.
Options (4)
OptionDescriptionSource
-?, --helpgive this help listhelp
--usagegive a short usage messagehelp
-v, --verboseprint verbose messages.help
-V, --versionprint program versionhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.