Which version of CentOS or RHEL is running?

Posted in Linux/Unix/BSD and Quick Tips -

The uname -a command will tell you which kernel version of Linux is running but doesn't give you any information about the distribution or distro version number. This quick tip shows how to do this for CentOS / Red Hat Enterprise Linux.

CentOS / RHEL version

From the command line enter the following command:

cat /etc/redhat-release

This will show you something like this:

CentOS release 5.4 (Final)

Easy! Hopefully now I've posted this I won't forget it next time...




Comments