man > GRUB-EDITENV

⚡ TLDR: GRUB-EDITENV (tldr-pages)

Edit GRUB environment variables.

  • Set a default boot entry (Assuming the boot entry already exists)
    grub-editenv /boot/grub/grubenv set default={{Ubuntu}}
  • Display all GRUB environment variables
    grub-editenv /boot/grub/grubenv list
  • Reset the `saved_entry` variable to the default
    grub-editenv /boot/grub/grubenv unset saved_entry
GRUB-EDITENV(1)                             User Commands                            GRUB-EDITENV(1)

NAME
       grub-editenv - edit GRUB environment block

SYNOPSIS
       grub-editenv [OPTION...] FILENAME COMMAND

DESCRIPTION
       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'.

REPORTING BUGS
       Report bugs to <bug-grub AT gnu.org>.

SEE ALSO
       grub-reboot(8), grub-set-default(8)

       The full documentation for grub-editenv is maintained as a Texinfo manual.  If the  info  and
       grub-editenv programs are properly installed at your site, the command

              info grub-editenv

       should give you access to the complete manual.

GRUB 2.12-1ubuntu7.3                         March 2025                              GRUB-EDITENV(1)

Generated by phpman v4.11.2-59-gf06411a · Markdown · JSON Author: Che Dong Under GNU General Public License
2026-10-14 22:25 @2600:1f28:365:80b0:e171:2ede:aaa3:76c3
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!