What is the CentOS version I’m running?

I’ve been working lately on Azure and with CentOS and it’s been a while since the last time I work with *nix on a daily basis, so I needed to check the version, simple and as reminder for myself and others, he’s how to check the version of CentOS:

As with *unix, there’s more than one way to do it

cat /etc/centos-release

rpm –query centos-release

And the one that provides the most information

hostnamectl