how to find the cent os version in linux code example
Example: check centos version
$ cat /etc/redhat-release
output : CentOS Linux release 7.4.1708 (Core)
$ cat /etc/redhat-release
output : CentOS Linux release 7.4.1708 (Core)