sillycat 发表于 2013-2-4 13:35:10

Understand the Linux Version

Understand the Linux Version

1. to see the base core version command
>cat /proc/version
Linux version 2.6.9-89.ELsmp (mockbuild@hs20-bc1-2.build.redhat.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-11)) #1 SMP Mon Apr 20 10:34:33 EDT 2009

>uname -a
Linux xxxxx 2.6.9-89.ELsmp #1 SMP Mon Apr 20 10:34:33 EDT 2009 i686 i686 i386 GNU/Linux

>uname -r
2.6.9-89.ELsmp

2. to see the linux full version
>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 Updatehttp://www.agoit.com/images/smiles/icon_cool.gif
Release:         4
Codename:   NahantUpdate8

>cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Updatehttp://www.agoit.com/images/smiles/icon_cool.gif

>rpm -q redhat-release
redhat-release-4AS-9

references:
http://blog.csdn.net/russle/article/details/6199232
页: [1]
查看完整版本: Understand the Linux Version