Finding out the version of redhat or centOS you’re running is easy, you simple cat out the release version file standard on any red hat variant.
[root@server101 ~]# cat /etc/redhat-release
Output
CentOS release 6.7 (Final)
Finding out the version of redhat or centOS you’re running is easy, you simple cat out the release version file standard on any red hat variant.
[root@server101 ~]# cat /etc/redhat-release
CentOS release 6.7 (Final)