grub-editenv

Edit GRUB environment variables. More information: <https://www.gnu.org/software/grub/manual/grub/grub.html>.

Install

All systems
curl cmd.cat/grub-editenv.sh
Debian Debian
apt-get install grub-common
Ubuntu
apt-get install grub-common
Alpine
apk add grub
Arch Arch Linux
pacman -S grub
image/svg+xml Kali Linux
apt-get install grub-common
CentOS
yum install grub
Windows (WSL2)
sudo apt-get update sudo apt-get install grub-common
Raspbian
apt-get install grub-common
Docker
docker run cmd.cat/grub-editenv grub-editenv powered by Commando

Edit GRUB environment variables. More information: <https://www.gnu.org/software/grub/manual/grub/grub.html>.

  • Set a default boot entry (Assuming the boot entry already exists):
    grub-editenv /boot/grub/grubenv set default=Ubuntu
  • Display the current value of the `timeout` variable:
    grub-editenv /boot/grub/grubenv list timeout
  • Reset the `saved_entry` variable to the default:
    grub-editenv /boot/grub/grubenv unset saved_entry
  • Append "quiet splash" to the kernel command line:
    grub-editenv /boot/grub/grubenv list kernel_cmdline

© tl;dr; authors and contributors