Just parking this here. Most of the servers I maintain run CentOS, and occasionally I need to know which version of CentOS they’re running. For the servers I maintain, all of these works from the command line to return the version, though the RPM command gives the most detailed information.
# rpm --query centos-release
# lsb_release -d
- May 28, 2016 @ 23:57:48 [Current Revision] by Brian Carnell
- May 27, 2016 @ 11:47:23 by Brian Carnell