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
-
apt-get install grub-common - Ubuntu
-
apt-get install grub-common -
Alpine
-
apk add grub - Arch Linux
-
pacman -S grub - Kali Linux
-
apt-get install grub-common - CentOS
-
yum install grub - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install grub-common - Raspbian
-
apt-get install grub-common - Docker
-
docker run cmd.cat/grub-editenv grub-editenvpowered 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