How to check CentOS version in Linux ?

How to check CentOS version in Linux ?

There are several ways to get CentOS version information running on your system. Below given are examples through which you can get CentOS version. However, each one will not work for you but mostly works one of them.

1). You can check CentOS version through cat command (always works):
----
# cat /etc/centos-release
----

2). You can use rpm command to reveal CentOS version :
----
# rpm --query centos-release
----

3). you can alos use lsb_release command to get CentOS version :
----
# lsb_release -d
----
Author
bhawanisingh
Views
1,972
First release
Last update
Rating
0.00 star(s) 0 ratings
Top