How to check the default kernel version?

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux 9
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 7

Issue

  • How to check the default kernel version?

Resolution

  • Check the default kernel using the grubby command:
# grubby --default-kernel
/boot/vmlinuz-5.14.0-427.33.1.el9_4.x86_64

Diagnostic Steps

SBR
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.