
Alternatively, use the below for loop for an instant check:

Use cat to check the content of each file to reveal your Redhat OS version. Namely os-release, redhat-release and system-release:

There are number of release files located in the /etc/ directory. Use rpm command to query Redhat’s release package:Ĭheck Common Platform Enumeration source file:Ĭpe:/o:redhat:enterprise_linux: 7.3:ga:serverĭepending on whether a redhat-lsb package is installed on your system you may also use lsb_release -d command to check Redhat’s system version:ĭescription: Red Hat Enterprise Linux Server release 7.3 (Maipo)Īlternatively install redhat-lsb package with: Operating System: Red Hat Enterprise Linux Server 7.3 (Maipo)ĬPE OS Name: cpe:/o:redhat:enterprise_linux:7.3:GA:server Hostnamectl is most likely the first and last command you need to execute to reveal your RHEL system version: To check a version of other Linux distributions visit our how to check Linux version guide.
