Check out example codes for "how to know which centos version is installed". It will help you in understanding the concepts better.

Code Example 1

<p>On the GUI (Gnome) upper right corner click on settings and then on details </p>

By command line 

cat /etc/centos-release

This command works also changing the word centos by os (os-release)

Learn ReactJs, React Native from akashmittal.com