How to see CentOS linux version

1 Comment

Many times I forget the Linux command which is used to see the centOS linux operating system version. So, decided to write down it here on my blog and refer back when i forget. I hope it may also help others!

Below is the command used for finding centOS linux version

cat /etc/redhat-release/ — CentOs uses redhat kernal
  1. Output is as below
  2. <pre lang="bash">CentOS release 4.6 (Final)

Same command in generic way for any linux machine

cat /etc/*release*/
  1. Another alternative command to see the Linux operating system version
  2. <pre lang="bash">cat /etc/issue

One more alternative command to see rpm based Linux versions, and also this command list all the rpm packages installed and their version numbers.

rpm -qa | grep centos

From now, If I forget this command, I can refer back here. Bravo!


Browse Realted Articles

One Response to “How to see CentOS linux version”

Macster says on Aug Mon, 2011 at 09:54:48 am

This is a nice one. I´ve encountered this article several times this week searching for something alike. Now is in my mail box :) Keep up the good work!

Leave a Reply