Use the following command to view the centos version number
cat /etc/centos-release
The effect is as shown below
Also You can use this command to check the version of Red Hat:
cat /etc/redhat-release
Recommended related video tutorials: linux video tutorial
The above is the detailed content of How to check the version number of centos. For more information, please follow other related articles on the PHP Chinese website!