Monday, October 28, 2013

How to check CentOS version

In order to check current version of CentOS, try the following.

>  cat /etc/*release*

You will see the version similar to the following.

CentOS release 6.4 (Final)
cat: /etc/lsb-release.d: Is a directory
CentOS release 6.4 (Final)
CentOS release 6.4 (Final)

Or more specifically...

cat /etc/centos-release

This will show just the version number as follows.

CentOS release 6.4 (Final)

No comments: