The following command works with all CentOS versions.
cat /etc/centos-release
You should receive a result similar to the following:
CentOS release 6.5 (Final)
You can also use:
cat /etc/redhat-release
The following command works with all CentOS versions.
cat /etc/centos-release
You should receive a result similar to the following:
CentOS release 6.5 (Final)
You can also use:
cat /etc/redhat-release