首页 » 操作系统 » Linux » CentOS系统下查看系统版本信息

CentOS系统下查看系统版本信息

 

1、查看CentOS内核的版本:

[root@localhost ~]# cat /proc/version
Linux version 2.6.18-194.el5PAE (mockbuild@builder16.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Fri Apr 2 15:37:44 EDT 2010
[root@localhost ~]# uname -a
Linux mail.corp-pushmail.com 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44 EDT 2010 i686 i686 i386 GNU/Linux
[root@localhost ~]# uname -r
2.6.18-194.el5PAE

2、 查看Linux/CentOS系统版本:
列出所有版本信息,此命令适用于所有Linux内核系统。

[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: CentOS
Description:    CentOS release 5.5 (Final)
Release:        5.5
Codename:       Final
[root@localhost ~]# cat /etc/issue
CentOS release 5.5 (Final)
Kernel \r on an \m
[root@localhost ~]# cat /etc/redhat-release
CentOS release 5.5 (Final)

3、查看系统是64位还是32位:

[root@localhost ~]# getconf LONG_BIT
32
[root@localhost ~]# file /bin/ls
/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), stripped

原文链接:CentOS系统下查看系统版本信息,转载请注明来源!

1