How Do You Check If Linux Is Redhat or Centos?
Contents How Do I Know If I Have Linux Redhat or Centos? in This Article, We Will Show How to Check the Version of Centos or Rhel Linux Installed on Your...
Contents
How do I know if I have Linux Redhat or CentOS?
In this article, we will show how to check the version of CentOS or RHEL Linux installed on your server.
…
Let’s take a look at these 4 useful ways to check CentOS or RHEL release version.
- Using RPM Command. …
- Using Hostnamectl Command. …
- Using lsb_release Command. …
- Using Distro Release Files.
How do I know if my OS is redhat?
Option 2: Find Version in /etc/redhat-release File
Red Hat-based distros contain release files located in the /etc/redhat-release directory. For example, os-release, system-release, and redhat-release. In the image above, you can see that this system is using the version CentOS 7.6. 1810.