grubby Command Reference¶
Provides a quick-reference guide for using the grubby utility to view, switch, and modify Linux kernel boot parameters and default entries directly from the command line.
Viewing Kernel Information¶
Display the current default kernel path — sudo grubby --default-kernel:
View detailed boot config for a specific kernel — sudo grubby --info=/path/to/vmlinuz:
List configuration for all installed kernels — sudo grubby --info=ALL:
Managing the Default Boot Kernel¶
Set a new default kernel using explicit path — sudo grubby --set-default=/path/to/vmlinuz:
Set a new default kernel using menu index (0 is first) — sudo grubby --set-default-index=
Modifying Kernel Boot Arguments¶
Add or modify arguments for a specific kernel — sudo grubby --update-kernel=/path/to/vmlinuz --args="
Add or modify arguments across all kernels — sudo grubby --update-kernel=ALL --args="
Remove arguments from a specific kernel — sudo grubby --update-kernel=/path/to/vmlinuz --remove-args="
Remove arguments across all kernels — sudo grubby --update-kernel=ALL --remove-args="
Add and remove arguments concurrently — sudo grubby --update-kernel=