how to know which centos version is installed

HTML
<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)
Source

Also in HTML: