There are several ways to get CentOS version information running on your system. Below given are examples through which you can get CentOS version. However, each one will not work for you but mostly works one of them.
1). You can check CentOS version through cat command (always works):
----
# cat /etc/centos-release
----
2). You can use rpm command to reveal CentOS version :
----
# rpm --query centos-release
----
3). you can alos use lsb_release command to get CentOS version :
----
# lsb_release -d
----
1). You can check CentOS version through cat command (always works):
----
# cat /etc/centos-release
----
2). You can use rpm command to reveal CentOS version :
----
# rpm --query centos-release
----
3). you can alos use lsb_release command to get CentOS version :
----
# lsb_release -d
----