centos 如何查看操作系统是哪个版本

87447007 2017-09-19

centos查看操作系统版本信息主要有以下几种方式:

1、通过cat/proc/version、uname

[[email protected]~]#cat/proc/version

Linuxversion2.6.32-279.el6.x86_64([email protected])(gccversion4.4.620120305(RedHat4.4.6-4)(GCC))#1SMPFriJun2212:19:21UTC2012

[[email protected]~]#uname-a

LinuxLAMP1.12.6.32-279.el6.x86_64#1SMPFriJun2212:19:21UTC2012x86_64x86_64x86_64GNU/Linux

[[email protected]~]#uname-r

2.6.32-279.el6.x86_64

[[email protected]~]#

2、通过cat/etc/issue、cat/etc/redhat-release

[[email protected]~]#cat/etc/issue

CentOSrelease6.3(Final)

Kernel\ronan\m

[[email protected]~]#cat/etc/redhat-release

CentOSrelease6.3(Final)

[[email protected]~]#

3、查看64位还是32位:

[[email protected]~]#getconfLONG_BIT

64

[[email protected]~]#

4、使用file/bin/ls

[[email protected]~]#file/bin/ls

/bin/ls:ELF64-bitLSBexecutable,x86-64,version1(SYSV),dynamicallylinked(usessharedlibs),forGNU/Linux2.6.18,stripped

相关推荐