Regenerate the GRUB Boot Menu with update-grub
After editing /etc/default/grub or installing a kernel, rebuild grub.cfg so the boot menu reflects it.
01Command
$ sudo update-grub02What it does
On Debian/Ubuntu, update-grub is a thin wrapper around grub-mkconfig -o /boot/grub/grub.cfg that scans /boot for kernels and probes other installed OSes via os-prober to build the menu. Edits to /etc/default/grub (timeout, default entry, kernel parameters via GRUB_CMDLINE_LINUX_DEFAULT) only take effect after this step. On Fedora and openSUSE there is no update-grub; use grub2-mkconfig -o /boot/grub2/grub.cfg instead.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- update-grub(8) — Debian man page (grub2-common)Evidence: Man page documents update-grub as a stub for grub-mkconfig -o /boot/grub/grub.cfg, confirming the grub.cfg regeneration behavior.
- update-grub(8) — program to generate GRUB2 configurationEvidence: Man page states update-grub generates a new grub.cfg file by running grub-mkconfig; confirms 'update-grub' and 'grub.cfg' appear in the text.
Last verified: 2026-09-19 · Category: System & Settings
06Related solutions
timedatectl lists, sets, and verifies the system timezone and NTP sync status on systemd distributions.
hostnamectl sets the static, transient, and pretty hostname in one step on systemd distros, no reboot required.
systemctl list-timers shows every scheduled timer unit with its last and next run times, which many users forget replaces cron on modern distros.