The quickest way to check your Linux version

The fastest method depends on what you're sitting in front of. If you have a terminal open, type lsb_release -a and press Enter. This command shows your distribution name, release number, and codename in three lines. If that command doesn't work, try cat /etc/os-release instead — it displays the same information in a slightly different format that works on almost every Linux system.

Both commands take two seconds and tell you exactly what you need to know. The lsb_release command is more readable for humans; the /etc/os-release file is what the system itself reads, so it's more reliable if you're troubleshooting a problem.

If you're using a graphical desktop instead of a terminal, you can usually find the version in Settings or System Information. On Ubuntu, open Settings, scroll to "About", and you'll see the version number. On Fedora, the same information lives in Settings under "Details". The exact location varies by desktop environment, but it's always labeled clearly.

Key Takeaways

  • Type lsb_release -a in a terminal to see your Linux distribution name and version number in three readable lines.
  • If that doesn't work, use cat /etc/os-release instead, which works on nearly all Linux systems.
  • On a graphical desktop, open Settings or System Information and look for "About" or "Details" to find the version.
  • Knowing your version matters because software support, security updates, and installation instructions often depend on which release you're running.

Why your Linux version matters

Different versions of Linux receive updates for different lengths of time. Ubuntu 20.04 gets security patches until 2025; Ubuntu 22.04 gets them until 2027. Fedora releases a new version every six months and only supports each one for about thirteen months. If you're running an old version, you might not be able to install newer software, or you might be missing security fixes.

When you search for help online or ask someone how to fix a problem, the first thing they'll ask is what version you're running. Installation instructions for programs often say "for Ubuntu 22.04 and later" or "requires Fedora 38 or higher". Knowing your version saves you from following instructions that won't work on your system.

Understanding what the version number means

A version number like "22.04" or "38" tells you when the release came out and how stable it is. Ubuntu uses a year-and-month system: 22.04 means April 2022. Fedora uses straightforward counting: Fedora 38, Fedora 39, and so on. Red Hat Enterprise Linux uses longer support cycles and slower version increments.

The difference between versions isn't just a number — it can mean different default programs, different ways to configure settings, or different commands that work. A script written for Ubuntu 20.04 might not run on Ubuntu 18.04 without changes. This is why checking your version first prevents wasted time.

Finding the kernel version separately

Your Linux distribution version and your kernel version are two different things. The distribution is Ubuntu or Fedora or Debian; the kernel is the core of the operating system that talks to your hardware. You might be running Ubuntu 22.04 with kernel 5.15 or kernel 6.1.

To see just the kernel version, type uname -r in a terminal. This shows a number like "5.15.0-56-generic" or "6.1.0-1-generic". Most of the time you don't need this — the distribution version is what matters for installing software. But if you're troubleshooting hardware problems or need to know exactly which kernel features are available, this is where to look.

Checking version information on a remote server

If you're connected to a Linux server through SSH, the same commands work exactly the same way. Type lsb_release -a or cat /etc/os-release and you'll see the server's version, not your own computer's version. This is useful when you're managing multiple servers and need to know which ones are running which versions.

Some servers don't have the lsb_release command installed, especially older or minimal installations. In those cases, cat /etc/os-release almost always works. If neither command works, you're on a very old system, and you should ask whoever set it up what version it is.

What to do if you need to upgrade

If your version is old and no longer receiving updates, you have two choices: upgrade to a newer version of the same distribution, or switch to a different distribution entirely. Ubuntu offers an upgrade path from one version to the next — you can usually upgrade from 20.04 to 22.04 without reinstalling everything. Fedora requires a fresh install or a more complex upgrade process.

Before you upgrade, back up your important files. Upgrades usually work smoothly, but they can fail, and you don't want to lose data. Check the release notes for your distribution to see if there are any known problems with upgrading from your current version to the new one.

Frequently Asked Questions

What's the difference between a distribution and a kernel?

The distribution is the collection of software and tools that come with Linux — Ubuntu, Fedora, Debian, etc. The kernel is the core program that manages your hardware and runs everything else. You can run the same kernel on different distributions, and different kernels on the same distribution.

Can I check the version without opening a terminal?

Yes. On most graphical desktops, open Settings or System Information and look for "About" or "Details". The exact location depends on which desktop environment you're using, but it's always labeled clearly and takes about thirty seconds to find.

Why does my version number have letters in it?

Letters usually indicate a point release or a long-term support version. Ubuntu 22.04 LTS means it's a long-term support version that gets updates for five years instead of nine months. The letters don't change how you use the system — they just tell you how long you'll receive updates.

Do I need to upgrade if my version is old?

Eventually, yes. When your version stops receiving security updates, you're vulnerable to attacks. Most distributions stop updating versions after one to five years. Check your distribution's website to see when your version stops being supported, and plan an upgrade before that date.

Will upgrading delete my files?

No. Upgrading to a newer version of the same distribution keeps your files, settings, and installed programs. Always back up important files before upgrading anyway, because upgrades can occasionally fail. Switching to a completely different distribution usually requires a fresh install, which does delete everything.