The fastest way to check your Ubuntu version

Open the terminal and type lsb_release -a, then press Enter. This command shows your Ubuntu release number, codename, and description in three lines. It is the most straightforward method because it gives you all the version information at once without extra output.

If you want only the version number without the codename, type lsb_release -r instead. The terminal will return just the release line — for example, "Release: 22.04" — which is useful if you need to copy the number quickly.

The output appears instantly. You will see something like "Distributor ID: Ubuntu", "Release: 22.04", and "Codename: jammy". Write down or screenshot the release number if you need it for troubleshooting or to check support timelines later.

Key Takeaways

  • The lsb_release -a command in the terminal shows your full Ubuntu version, codename, and release information in seconds.
  • If the lsb_release command does not work, check the /etc/os-release file instead, which contains the same information in a different format.
  • The graphical method through Settings works on Ubuntu desktop but not on server installations without a desktop environment.
  • Your Ubuntu version number tells you when your system will stop receiving security updates — knowing this helps you plan upgrades.
  • Ubuntu version numbers encode the release date: 22.04 means April 2022, and versions ending in .04 always receive five years of updates.

Checking your version through the graphical settings menu

If you use Ubuntu with a desktop interface, you can check your version without opening the terminal. Click the system menu in the top-right corner of your screen, then select "Settings" or the gear icon. Navigate to "About" in the left sidebar.

The About window displays your Ubuntu version, hardware model, and memory in one place. This method is slower than the terminal but requires no typing and shows the information in a format many users find easier to read.

Look for a line that says "OS Name" or "Version" — this is where Ubuntu displays the release number and codename together. You may also see your system's kernel version listed separately, which is different from your Ubuntu version but sometimes useful for troubleshooting.

Using the /etc/os-release file when lsb_release does not work

Some minimal Ubuntu installations or containers do not include the lsb_release tool. In these cases, open the terminal and type cat /etc/os-release. This command reads a system file that stores version information and displays it line by line.

The output includes lines like "VERSION_ID=22.04" and "VERSION_CODENAME=jammy". You may see more information than you need, but the version number appears clearly in the output. This method works on every Ubuntu system, even those without a graphical interface.

If you want to see only the version number from this file, you can type grep VERSION_ID /etc/os-release to filter out the extra lines. This is useful when you are checking versions on many systems at once and want clean, consistent output.

Understanding what your version number means

Ubuntu version numbers follow a pattern: the year and month of release. Version 22.04 means the system was released in April 2022. Version 20.04 was released in April 2020. This numbering helps you understand how old your system is and whether it still receives updates.

Long-term support (LTS) versions receive updates for five years. Standard releases receive updates for nine months. You can tell if your version is LTS by checking whether the version number ends in .04 — these are always LTS releases. Knowing this matters because it affects when you must upgrade to stay secure.

For example, Ubuntu 22.04 LTS will receive updates until April 2027. Ubuntu 23.10, a standard release, will receive updates only until July 2024. Checking your version tells you exactly how much time you have before your system reaches end-of-life.

What to do if you see an unfamiliar version number

If you installed Ubuntu from a custom image or your system was set up by someone else, the version number might not match what you expected. The commands above always show what your system actually is, not what you thought you installed. This is useful when troubleshooting problems or finding out whether your system is still supported.

You can cross-reference your version number with Ubuntu's release schedule on their website to see the exact end-of-life date for your version. This helps you plan whether to upgrade soon or whether your system will remain secure for the work you need to do.

If your version number is very old — more than five years back — your system is no longer receiving security updates. This is a sign that an upgrade should be a priority, especially if the machine connects to the internet or handles sensitive data.

Checking version on Ubuntu server without a desktop

Server installations do not have a graphical interface, so the Settings method does not work. Use the terminal commands instead: lsb_release -a or cat /etc/os-release. Both work identically on server systems and return the same version information.

If you manage multiple servers, you can log into each one remotely and run the command to check versions across your infrastructure. This is faster than logging into each machine's settings menu and helps you track which systems need updates or upgrades.

You can also create a simple script that checks the version on many servers at once and outputs the results to a file. This is useful for system administrators who need to maintain consistency across a fleet of machines or identify which servers are running outdated releases.

Frequently Asked Questions

Why do I need to know my Ubuntu version?

Your version determines when your system stops receiving security updates. LTS versions get five years of support; standard versions get nine months. Knowing your version helps you plan upgrades and understand whether your system is still secure.

What is the difference between the version number and the codename?

The version number (like 22.04) is the release date. The codename (like Jammy) is a nickname Ubuntu assigns to each release. Both refer to the same system version — the codename is just easier to remember in conversation.

Can I check my version without opening the terminal?

Yes, if you have a desktop interface. Open Settings, go to About, and your version appears there. Server systems without a desktop require the terminal, since there is no graphical settings menu.

What if lsb_release command returns an error?

Try cat /etc/os-release instead. This file exists on every Ubuntu system and contains the same version information. If both commands fail, your system may be severely broken or not actually Ubuntu.

How often should I check my Ubuntu version?

Check it once when you first set up a system, then again before installing software that requires a specific version. You should also check before your system's end-of-life date approaches, so you have time to plan an upgrade without rushing.