如何在不重启的情况下在 ubuntu 中查看 grub 内核

use*_*861 5 grub2 kernel

我想将我的 ubuntu 服务器设置为从较旧的内核启动,因为当前内核会导致问题。

我如何查看 grub 菜单中的条目列表,以便我知道将哪个设置为 GRUB_DEFAULT?无需重启。它s a remote server and i宁愿不开车 30 公里来查看列表。

小智 5

在 /boot/grub/grub.cfg 中查找 menuentry

cat /boot/grub/grub.cfg | grep menuentry
Run Code Online (Sandbox Code Playgroud)