There are several ways on how to check what version of CentOS is running on your system. The simplest way to check for the CentOS version number is to execute the:
What is the command to check CentOS version?
The following table contains most common and recommended ways on how to check CentOS version on your CentOS Linux server or desktop.
|$ rpm -q centos-release||CentOS version valid for CentOS 6 and higher. Causes to reveal major, minor and asynchronous CentOS version.|
|$ lsb_release -d||Requires
|$ cat /etc/centos-release||Linux