Which version of CentOS or RHEL is running?Which version of CentOS or RHEL is running?

Posted May 1st, 2012 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! Hopfully now I've posted this I won't forget it next time...

Comments

blog comments powered by Disqus