First, the query system version information
①[[email protected] ~]# cat/etc/issue
CentOS Release 6.6 (Final)
Kernel \ r on an \m
②[[email protected] ~]# Rpm-qa | grep centos-release
Centos-release-6-6.el6.centos.12.2.x86_64
③[[email protected] ~]# cat/etc/centos-release
CentOS Release 6.6 (Final)
Second, the query system kernel information
[Email protected] ~]# uname-a
Linux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT. i686 i686 i386 Gnu/linux
Third, query the CentOS and redhat version of the corresponding information
[Email protected] ~]# cat/proc/version
Linux version 2.6.32-504.el6.x86_64 ([email protected]) (GCC version 4.4.7 20120313 (Red Hat 4.4.7-11) (gcc)) #1 SMP Wed Oct 04:27:16 UTC 2014
This article is from the "7059546" blog, please be sure to keep this source http://7069546.blog.51cto.com/7059546/1750877
CentOS system uses commands to query version information