Search Our Database

How to check Linux OS version on RHEL-based and Debian-based distributions

Last updated on |
by

Introduction

This guide is designed for users who need to determine the current version of their operating system (OS). Knowing the OS version is important for software compatibility, troubleshooting, and system updates. This article explains how to check the OS version for RHEL-based and Debian-based distributions.

 

Prerequisites

  • Access to the system you want to check.
  • Appropriate user permissions (e.g., administrator or root access may be required in some cases).

 

RHEL-based Distributions (E.g., AlmaLinux, Rocky Linux)

To check the OS version on RHEL-based distributions, run the following command in your server’s terminal:

cat /etc/redhat-release

After running the command, the current version of your Linux operating system will be displayed. For example:

 

Debian-based Distributions (E.g., Debian, Ubuntu)

To check the OS version on Debian-based distributions, run the following command in your server’s terminal:

cat /etc/lsb-release

After running the command, the current version of your Linux operating system will be displayed. For example:

 

Conclusion

By following these methods, you can easily check the current version of your operating system on RHEL-based and Debian-based distributions. Checking your OS version is essential for ensuring compatibility with software and applying system updates.

 

 

Article posted on 23 March 2020.