From fbf588f8b96b018f9e3e772d4a78d44ce9ac6a12 Mon Sep 17 00:00:00 2001 From: lutixiaya <48750425+lutixiaya@users.noreply.github.com> Date: Fri, 21 Oct 2022 15:31:36 +0800 Subject: [PATCH] Create grub2-mkconfig.md (#435) --- command/grub2-mkconfig.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 command/grub2-mkconfig.md diff --git a/command/grub2-mkconfig.md b/command/grub2-mkconfig.md new file mode 100644 index 0000000000..97d53f2acb --- /dev/null +++ b/command/grub2-mkconfig.md @@ -0,0 +1,30 @@ +grub2-mkconfig +=== + +生成 grub.cfg 配置文件。 + +## 语法 + +```shell +Usage: grub2-mkconfig [OPTION] +Generate a grub config file + + -o, --output=FILE output generated config to FILE [default=stdout] + -h, --help print this message and exit + -v, --version print the version information and exit + +Report bugs to . + +``` + +## 实例 + +生成新的grub配置文件 + +```shell +grub2-mkconfig -o /boot/grub2/grub.cfg + +# 或者 + +grub2-mkconfig > /boot/grub2/grub.cfg +```