# phpman > man > grub-editenv(1)

> **TLDR:** 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`

*Source: tldr-pages*

---

[GRUB-EDITENV(1)](https://www.chedong.com/phpMan.php/man/GRUB-EDITENV/1/markdown)                             User Commands                            [GRUB-EDITENV(1)](https://www.chedong.com/phpMan.php/man/GRUB-EDITENV/1/markdown)



## 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@gnu.org>>.

## SEE ALSO
       [**grub-reboot**(8)](https://www.chedong.com/phpMan.php/man/grub-reboot/8/markdown), [**grub-set-default**(8)](https://www.chedong.com/phpMan.php/man/grub-set-default/8/markdown)

       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.06-2ubuntu7.2                        December 2022                            [GRUB-EDITENV(1)](https://www.chedong.com/phpMan.php/man/GRUB-EDITENV/1/markdown)
