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
-
Output is as below
-
<pre lang="bash">CentOS release 4.6 (Final)
Same command in generic way for any linux machine
cat /etc/*release*/
-
Another alternative command to see the Linux operating system version
-
<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!







One Response to “How to see CentOS linux version”
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!