How to Check Your Ubuntu OS Version (Every Method Explained)

Knowing which version of Ubuntu you're running isn't just trivia — it directly affects software compatibility, security patch eligibility, and whether certain terminal commands or GUI options will even exist on your system. Ubuntu releases follow a predictable naming and numbering pattern, but the way you retrieve that version information varies depending on your setup, access level, and whether you're working on a desktop or a headless server.

Here's a complete breakdown of every reliable method, what each one tells you, and why the results can differ depending on your environment.

Why Ubuntu Version Checking Isn't Always Straightforward

Ubuntu uses a YY.MM versioning format — so 22.04 means April 2022, and 24.04 means April 2024. Releases come in two flavors:

  • LTS (Long-Term Support): Supported for 5 years, used heavily in production environments
  • Standard releases: Supported for only 9 months, more cutting-edge but shorter lifespan

When you check your version, you might see references to the release number, the codename (like "Jammy Jellyfish" or "Noble Numbat"), and the kernel version — these are three distinct pieces of information, and they're not interchangeable.

Method 1: Using the Terminal (Most Reliable) 🖥️

The terminal works across every Ubuntu environment — desktop, server, WSL, or SSH session.