几种查看linux版本信息的方法

1. uname -a
2. cat /proc/version
3. cat /etc/issue
4. lsb_release -a

[root@codfei tmp]# uname -a
Linux codfei 2.6.9-42.EL #1 Wed Jul 12 23:16:43 EDT 2006 i686 i686 i386 GNU/Linux

[root@codfei tmp]# cat /proc/version
Linux version 2.6.9-42.EL (bhcompile@hs20-bc1-1.build.redhat.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-2)) #1 Wed Jul 12 23:16:43 EDT 2006

[root@codfei tmp]# cat /etc/issue
Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
Kernel \r on an \m
 
[root@codfei tmp]# lsb_release -a
LSB Version:    :core-3.0-ia32:core-3.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch
Distributor ID: RedHatEnterpriseAS
Description:    Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
Release:        4
Codename:       NahantUpdate4

posted on 2008-05-06 14:28  afant  阅读(277)  评论(0编辑  收藏  举报

导航