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!
