-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[email protected]>. | ||
|
||
``` | ||
|
||
## 实例 | ||
|
||
生成新的grub配置文件 | ||
|
||
```shell | ||
grub2-mkconfig -o /boot/grub2/grub.cfg | ||
|
||
# 或者 | ||
|
||
grub2-mkconfig > /boot/grub2/grub.cfg | ||
``` |