How to see CentOS linux version

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

Bookmark and Share

Leave a Reply