📜  更改默认引导 grub - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:30.836000             🧑  作者: Mango

代码示例1
sudo cp /etc/default/grub /etc/default/grub.bak
#create a backup if you want
sudo nano /etc/default/grub
# find the line that contains GRUB_DEFAULT=0
# change it to what you want. 0 is normally Ubuntu, 1 is advanced options.
sudo update-grub
reboot