查看linux版本的命令

lsb_release -a

LSB Version:    :core-3.0-ia32:core-3.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch

DistributorID:RedHatEnterpriseAS

Description:RedHatEnterpriseLinuxASrelease4(NahantUpdate6)

Release:4

Codename:       NahantUpdate6

more /proc/version

Linux version 2.6.9-67.ELsmp ([email protected]) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-8)) #1 SMP Wed Nov 7 13:58:04 EST 2007

[wen@Wen ~]$ uname -a

Linux Wen.RedHat 2.6.18-194.el5PAE #1 SMP Tue Mar 16 22:00:21 EDT 2010 i686 i686 i386 GNU/Linux

[wen@Wen ~]$ arch

i686

[wen@Wen ~]$ getconf LONG_BIT

32

[wen@Wen ~]$ rpm -q --queryformat '%{NAME}-%{VERSION}-%{RELEASE}-%{ARCH}\n' kernel

package kernel is not installed

[wen@Wen ~]$ uname -r

2.6.18-194.el5PAE

相关推荐