The quickest way to check your kernel version
The fastest command is uname -r. Open a terminal and type it exactly as shown, then press Enter. The output will be a single line showing your kernel version number — something like 5.15.0-91-generic or 6.1.0-18-generic. This works on every Linux distribution without installing anything extra.
If you want more detail than just the version number, use uname -a instead. This shows your kernel version plus the system architecture (whether you're running 32-bit or 64-bit), the hardware platform, and the operating system name. Both commands run instantly and require no special permissions.
Key Takeaways
- Type uname -r in a terminal to see only your kernel version number in one line.
- Type uname -a to see your kernel version along with architecture and system details.
- The hostnamectl command shows kernel version in a formatted list that also includes your operating system name.
- Check /proc/version to see the full kernel build information, including the compiler used and build date.
- All these methods work without administrator access and produce results instantly.
Using hostnamectl for a formatted display
The hostnamectl command shows your kernel version in a readable list format rather than a single line. Type it in a terminal and you'll see your system hostname, operating system, kernel version, and architecture all at once. This is useful if you want to see the kernel version alongside your distribution name in one view.
Some newer Linux systems use hostnamectl as the standard way to display this information. It's particularly common on systems running systemd, which is now the default init system on most major distributions. The output is easier to read than uname if you're not comfortable with command-line tools yet.
Reading the kernel version file directly
You can also view kernel information by reading the /proc/version file. Type cat /proc/version in a terminal. This shows your kernel version number plus additional details like the compiler version used to build the kernel, the build date, and the build host name. The output is longer and more technical than uname, but it's the raw information the system stores.
This file exists on every Linux system because the /proc directory is a virtual filesystem that the kernel creates at boot time. Reading it doesn't require any special permissions and doesn't change anything on your system — you're just viewing information that's already there.
Checking kernel version through the graphical interface
If you prefer not to use the terminal, most Linux desktop environments let you find this information through settings. On GNOME (used by Ubuntu, Fedora, and others), open Settings, then go to About. You'll see "OS Version" or "Kernel Version" listed there. On KDE Plasma, open System Settings and look for About This System or System Information.
The exact location varies by desktop environment, but the pattern is similar: look for a Settings or System Information application, then find the section labeled About, System, or Details. This method takes longer than typing a command, but it's useful if you're helping someone who isn't comfortable with terminals.
Understanding what the version number means
A kernel version like 5.15.0-91-generic breaks down into parts. The first number (5) is the major version. The second number (15) is the minor version. The third number (0) is the patch level. After that, distribution-specific information appears — the -91 and -generic parts are added by Ubuntu or another distributor to track their own updates to that kernel version.
When you see a newer major or minor version number, it means significant changes to the kernel. Patch versions indicate bug fixes and security updates to an existing release. The distribution-specific suffix tells you which Linux distribution packaged this kernel and how many times they've updated it. You don't need to understand all these details to know whether your kernel is current — your distribution's update manager handles that automatically.
Why you might need to know your kernel version
You check your kernel version when troubleshooting hardware problems, because some devices only work with certain kernel versions. You also need it when installing software that requires a minimum kernel version, or when reporting bugs to developers who need to know what kernel you were running. Security updates sometimes target specific kernel versions, so knowing yours helps you understand whether a particular patch applies to your system.
Most of the time, your distribution's update manager keeps your kernel current automatically. You only need to check manually if something isn't working as expected, or if you're following instructions that specifically ask for your kernel version. The commands above take seconds to run, so there's no harm in checking whenever you're curious.
Frequently Asked Questions
What's the difference between kernel version and operating system version?
The kernel is the core of the operating system — the part that manages hardware and runs programs. The operating system version (like Ubuntu 22.04 or Fedora 38) is the distribution, which includes the kernel plus thousands of other programs. A single distribution version might use several different kernel versions over time as updates are released.
Do I need to update my kernel if a new version comes out?
Your distribution's update manager handles kernel updates automatically in most cases. When you run your regular system updates, new kernel versions are included. You don't need to manually check for or install kernel updates — just keep your system updated through your distribution's standard update process.
Can I have multiple kernel versions installed at once?
Yes. Most Linux systems keep the previous kernel version installed alongside the new one, so you can boot into either one if the newest version causes problems. Your bootloader (usually GRUB) shows you the available kernels when you start your computer. You can select an older kernel from that menu if needed.
What if uname doesn't work in my terminal?
uname is a standard Unix command that exists on every Linux system, so it should always work. If you see "command not found", you might have typed it incorrectly — make sure it's lowercase and spelled u-n-a-m-e. If you're still having trouble, try cat /proc/version instead, which uses a different method to show the same information.
Is my kernel version the same as my Linux version?
No. Your Linux version is your distribution (Ubuntu, Fedora, Debian, etc.) and its release number. Your kernel version is the version of the Linux kernel that distribution is using. You can have Ubuntu 22.04 running kernel 5.15 or kernel 6.1 — the distribution version and kernel version are separate things.