How to Check Your Linux Kernel Version in Ubuntu

The Core Engine

The “Kernel” is the core engine of any Linux operating system. It acts as the bridge between your physical hardware (like your graphics card or Wi-Fi chip) and the software running on top of it. When you are attempting to install highly specific drivers (such as proprietary Nvidia graphics drivers or specialized network adapters), the installation script will often ask you to verify your exact Kernel version before proceeding. If you attempt to install software designed for Kernel version 5.15 onto a machine running version 6.2, the driver will completely crash your system. You must be able to query this version number instantly.

Using the uname Command

The standard Linux uname (Unix Name) command is the fastest way to retrieve system information directly from the kernel itself.

  1. Open your Terminal application (Ctrl + Alt + T) or log into your server via SSH.
  2. To ask the system for the current running kernel release, type the following command exactly:
  3. uname -r
  4. Press Enter. (You do not need sudo privileges for this command).

Understanding the Output

The terminal will instantly print a string of numbers, such as 6.5.0-27-generic.

  • 6: This is the Main Kernel version (a massive architectural release).
  • 5: This is the Major Revision (adds significant new features and hardware support).
  • 0: This is the Minor Revision (usually just bug fixes).
  • -27-generic: This indicates the specific patch level compiled by the Ubuntu development team for standard desktop and server hardware.

You can now confidently use this exact version string when downloading third-party drivers or compiling source code.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.