HOW TO CHECK REDHAT LINUX VERSION
Sometimes you will be in the need to check the version of Redhat installed.There are different ways by which you can check the version of Redhat the machine is running.
Linux Standard Base Release
lsb_release is a command which is used to print certain lsb and Distribution information.
First, We need to install redhat-lsb-core package:
#yum install redhat-lsb-release -y
Once installed We can check the version using below command:
From the above output, We can see that We are running Redhat with 7.4 version
Also, We can get the system version using the below command:
#rpm -qa |grep redhat-release
Alternatively, We can find the Linux version from the below files.