There are several ways to get CentOS version information running on your system. Below given are examples through which you can get CentOS version. However, each one will not work for you but mostly works one of them.
1). You can check CentOS version through cat command (always works):
----
#...