Check Redhat version installed

Posted: August 3, 2011 in How To
Tags: , , , , , , ,

I was looking at how to tell the version of Redhat Linux installed on a machine from a command line. Mostly I used uname -a to view the server settings.

Here is a sample:

$ uname -a

Linux   2.6.18-8.el5 #1  SMP  Fri Jan 26 14:15:21 EST 2007 i686 i686 i386  GNU/Linux

It return the server kernel’s version: 2.6.18-8.el5 #1, but not something my mother could understand.

To get a layman term, we can query file /etc/redhat-release instead.


$ cat /etc/redhat-release

Red Hat Enterprise Linux Server release 5 (Tikanga)

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s