grub-editenv - edit GRUB environment block
| Use Case | Command | Description |
|---|---|---|
| 📋 List variables | grub-editenv - list | Show current environment variables |
| ✨ Create new environment | grub-editenv - create | Create blank environment block file |
| ✍️ Set variable | grub-editenv - set key=val | Set a variable in the environment |
| ❌ Unset variable | grub-editenv - unset key | Remove a variable |
| 🗑️ Delete entire environment | rm /boot/grub/grubenv | Remove the whole block file (no built-in delete) |
grub-editenv [OPTION...] FILENAME COMMAND
Tool to edit environment block.
create — Create a blank environment block file. 🔨list — List the current variables. 📋set [NAME=VALUE ...] — Set variables. ✍️unset [NAME ...] — Delete variables. ❌-?, --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 AT gnu.org>.
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.
Generated by phpman v4.9.29 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-22 03:33 @2600:1f28:365:80b0:8802:8bb4:3873:328e
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format