一、 查看内核版本命令:
方法一:# cat /proc/version
方法二:# uname -a
方法三:# uname -r
二、 linux的版本
方法一:# lsb_release -a
这个命令适用于所有的linux,包括Redhat、SuSE、Debian等
方法二:# cat /etc/issue
方法三:# cat /etc/redhat-release (只对Redhat Linux有效)
方法四:# rpm -q redhat-release (只对Redhat Linux有效)
方法四可以看到子版本号。与实际版本的对应关系如下:
redhat-release-3AS-1 Redhat Enterprise Linux AS 3
redhat-release-3AS-7.4 Redhat Enterprise Linux AS 3 Update 4
redhat-release-4AS-2 Redhat Enterprise Linux AS 4
redhat-release-4AS-2.4 Redhat Enterprise Linux AS 4 Update 1
redhat-release-4AS-3 Redhat Enterprise Linux AS 4 Update 2
redhat-release-4AS-4.1 Redhat Enterprise Linux AS 4 Update 3
redhat-release-4AS-5.5 Redhat Enterprise Linux AS 4 Update 4
阅读(884) | 评论(0) | 转发(0) |