Find CentOS Version Number

by Pete Freitag

You can find the CentOS version number (the major release version) by running the following command:

cat /etc/redhat-release

It should output a version number in a format like this:

CentOS release 6.4 (Final)