← 返回命令列表

Linux command

update-grub 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

View

tldr grub-mkconfig

说明

update-grub is a convenience wrapper that generates a new GRUB configuration file. It is equivalent to running grub-mkconfig -o /boot/grub/grub.cfg and is commonly found on Debian-based distributions. The command reads configuration from /etc/default/grub and scripts in /etc/grub.d/ to generate the bootloader configuration.

FAQ

What is the update-grub command used for?

update-grub is a convenience wrapper that generates a new GRUB configuration file. It is equivalent to running grub-mkconfig -o /boot/grub/grub.cfg and is commonly found on Debian-based distributions. The command reads configuration from /etc/default/grub and scripts in /etc/grub.d/ to generate the bootloader configuration.

How do I run a basic update-grub example?

Run `tldr grub-mkconfig` in a terminal, then adjust file names, paths, flags, or remote targets for your system.