Check CentOS Version



To check the version of CentOS, there are a couple of commands that we can use to do this:

  rpm --query centos-release
  
  example:
  
  rpm --query centos-release
  CentOS release 6.7 (Final)