Recently we changed our hosting server to CentOS VPS, where we got the access to root user, and wanted to install some packages, for the same it was necessary to know the version of CentOS.
We tried below command to know the version of CentOS. ( CentOS seems related to fedora, since we have used only Ubuntu extensively, it was bit new to find out how to check CentOS version 🙂 )
# cat /etc/redhat-release
CentOS Linux release 7.8.2003 (Core)
As you can see above, our CentOS version if 7.8