Test your skills on our all Hosting services and get 15% off!

Use code at checkout:

Skills
11.08.2025

How to Find Your Linux Version ?

When managing a Linux system — whether it’s your personal computer, a VPS, or a dedicated server from AlexHost — knowing your exact Linux version is essential. It helps with installing compatible software, troubleshooting issues, and ensuring you follow the correct guides for your distribution. In this article, we’ll cover multiple ways to check your Linux version — from quick terminal commands to graphical tools.

1. Why You Should Know Your Linux Version

Knowing your Linux version allows you to:

  • Install software packages designed for your specific distribution.
  • Check compatibility with certain applications.
  • Follow accurate troubleshooting steps.
  • Ensure your server meets security and update requirements.

2. Checking Linux Version via Terminal

The terminal is the fastest way to find your Linux version. These commands work on most distributions.

Method 1: Using lsb_release

The lsb_release command shows distribution-specific details.

lsb_release -a

Output example:

Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy

If you see command not found, install it:

sudo apt install lsb-release # Debian/Ubuntu
sudo yum install redhat-lsb-core # CentOS/RHEL

Method 2: Reading /etc/os-release

This file contains OS identification data.

cat /etc/os-release

Example:

NAME="Ubuntu"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
ID=ubuntu

This method works on most modern distributions (Debian, Ubuntu, CentOS, Fedora, Arch, etc.).

Method 3: Using hostnamectl

The hostnamectl command displays system info, including OS.

hostnamectl

Example:

Operating System: Ubuntu 22.04.3 LTS
Kernel: Linux 5.15.0-78-generic
Architecture: x86-64

3. Checking the Linux Kernel Version

Sometimes you also need the kernel version for driver installation or debugging.

uname -r

Example:

5.15.0-78-generic

Full system details:

uname -a

4. Finding Version in a Graphical Interface

If you’re using Linux with a desktop environment:

  • Open Settings.
  • Go to About, Details, or System Info (varies by distribution).
  • Look for OS Name and Version.

5. Checking Version on a Remote VPS/Dedicated Server

If you have an AlexHost VPS or Dedicated Server:

  1. Connect via SSH:

ssh username@your-server-ip
  1. Run one of the commands:

lsb_release -a

or

cat /etc/os-release

Conclusion

Whether you’re using Linux on your laptop or managing a remote server, finding your Linux version is straightforward. For servers, we recommend using terminal commands like lsb_release -a or cat /etc/os-release — they work reliably across distributions. AlexHost Tip: When opening a support ticket or following installation instructions, always include your Linux version — it helps ensure you get the most accurate assistance.

Test your skills on our all Hosting services and get 15% off!

Use code at checkout:

Skills