日期:2014-05-16  浏览次数:20556 次

三种查看linux内核版本的方法

本文转自我的ChinaUnix博客:http://blog.chinaunix.net/u3/107162/showart_2188981.html

?2010-03-02?

?

三种查看linux内核版本的方法,每种查看linux内核版本结果都不一样。
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-128.el5 #1 SMP Wed Dec 17 11:42:39 EST 2008 i686 athlon i386 GNU/Linux
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# lsb_release -a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 5.3 (Tikanga)
Release: 5.3
Codename: Tikanga
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# cat /etc/issue
Red Hat Enterprise Linux Server release 5.3 (Tikanga)
Kernel \r on an \m
?
以上三种查询linux内核版本的命令非常实用