To check Ubuntu version, open your terminal and run lsb_release -a. This displays your installed Ubuntu release, its description, and codename.
You can also find the version through Ubuntu’s desktop Settings or by reading system information files. Here are four easy methods that work across Ubuntu desktop and server environments.
Key Takeaways
- Run
lsb_release -ato display your Ubuntu version and release details. - Use
cat /etc/os-releaseif thelsb_releasecommand isn’t available. - Ubuntu Desktop users can find their version under Settings → System → About.
- Checking your Ubuntu version helps identify compatible software and available security updates.

1. Check Ubuntu Version Using the Terminal
The quickest way to identify your Ubuntu release is through the lsb_release command.
Open Terminal using Ctrl + Alt + T, then run:
lsb_release -a
For example, an Ubuntu 26.04 LTS system may display:
Distributor ID: Ubuntu
Description: Ubuntu 26.04 LTS
Release: 26.04
Codename: resolute
This is an illustrative output; your installed release may differ.
To display only the Ubuntu version number, run:
lsb_release -r
Or display the release description:
lsb_release -d
The second command is particularly useful when you want a quick, readable answer without additional system information.
2. Get Ubuntu Version Using /etc/os-release
Another reliable method is to read the /etc/os-release file.
Run:
cat /etc/os-release
This file contains information about your Linux distribution, including:
NAME— Operating system nameVERSION_ID— Ubuntu version numberPRETTY_NAME— Human-readable operating system descriptionVERSION_CODENAME— Release codename, when available
To display only the readable operating system name, use:
grep '^PRETTY_NAME=' /etc/os-release
This method is especially useful on minimal Ubuntu server installations where lsb_release may not be installed.
3. Check Ubuntu Version Using hostnamectl
The hostnamectl utility can also display operating system information.
Run:
hostnamectl
Look for the Operating System field.
The output may also include your hostname, system architecture, and Linux kernel version.
This command is useful on Ubuntu systems running systemd. However, it may not work inside certain containers or minimal environments where the relevant system services aren’t available.
In those cases, use /etc/os-release instead.
4. Check Ubuntu Version Without the Terminal
If you’re using Ubuntu Desktop, you can find your installed version through the graphical interface.
Follow these steps:
- Open Settings from the application menu.
- Select System.
- Click About.
- Find the operating system version under Operating System or System Details.
The location of this information may vary slightly between Ubuntu releases and desktop environments.
This is the easiest method for users who prefer not to use terminal commands.
How to Check Ubuntu Version on a Remote Server
If you’re managing a VPS or dedicated server, you can retrieve its Ubuntu version remotely using SSH.
First, connect to your server:
ssh username@server-ip
Replace the username and IP address with your actual server credentials.
Once connected, run:
cat /etc/os-release
The output identifies the Ubuntu version installed on the remote server.
If you’re unfamiliar with remote server administration, our SSH commands guide for beginners explains how to connect securely and execute Linux commands.
Ubuntu Version vs Linux Kernel Version
Your Ubuntu release number and Linux kernel version are different.
For example:
- Ubuntu 26.04 LTS identifies the operating system release.
- Linux 7.x identifies a kernel version running on the system.
To check the Linux kernel version, run:
uname -r
The kernel version can change through system updates without upgrading Ubuntu to a different operating system release.
For software compatibility, always check which version number the application documentation requires.
What Does LTS Mean in Ubuntu?
LTS stands for Long-Term Support.
Ubuntu typically releases a new LTS version every two years. These releases receive longer maintenance periods than interim releases.
For example, Ubuntu 24.04 LTS and 26.04 LTS are long-term support releases, while Ubuntu 26.10 is an interim release.
Knowing whether your installation is LTS helps you plan software upgrades, security maintenance, and production deployments.
If you’re preparing an Ubuntu server for applications, our Ubuntu firewall configuration guide covers an important next step for securing the environment.
Why Is Checking Your Ubuntu Version Important?
Knowing your installed release helps you:
- Install compatible software packages
- Follow the correct version-specific tutorials
- Check security maintenance availability
- Troubleshoot operating system issues
- Plan upgrades and server migrations
For example, before deploying Kubernetes, you should confirm that your operating system matches the installation requirements. Our K3s installation tutorial demonstrates a version-specific Ubuntu server setup.
Final Thoughts
The easiest way to check Ubuntu version is with lsb_release -a in the terminal.
Alternatively, use /etc/os-release, hostnamectl, or Ubuntu Desktop’s Settings application.
These methods help you identify your installed Ubuntu release before installing applications, troubleshooting issues, or planning system upgrades.