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

前端之家收集整理的这篇文章主要介绍了centos 如何查看操作系统是哪个版本前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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

1、通过cat /proc/version 、uname

  1. [root@192.168.1.1 ~]# cat /proc/version
  2. Linux version 2.6.32-279.el6.x86_64 (mockbuild@c6b9.bsys.dev.centos.org) (gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Fri Jun 22 12:19:21 UTC 2012
  3. [root@192.168.1.1 ~]# uname -a
  4. Linux LAMP1.1 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
  5. [root@192.168.1.1 ~]# uname -r
  6. 2.6.32-279.el6.x86_64
  7. [root@192.168.1.1 ~]#
2、通过cat /etc/issue 、cat /etc/redhat-release

  1. [root@192.168.1.1 ~]# cat /etc/issue
  2. CentOS release 6.3 (Final)
  3. Kernel \r on an \m
  4.  
  5. [root@192.168.1.1 ~]# cat /etc/redhat-release
  6. CentOS release 6.3 (Final)
  7. [root@192.168.1.1 ~]#

3、 查看64位还是32位:

  1. [root@192.168.1.1 ~]# getconf LONG_BIT
  2. 64
  3. [root@192.168.1.1 ~]#

4、 使用 file /bin/ls

  1. [root@192.168.1.1 ~]# file /bin/ls
  2. /bin/ls: ELF 64-bit LSB executable,x86-64,version 1 (SYSV),dynamically linked (uses shared libs),for GNU/Linux 2.6.18,stripped
  3. [root@192.168.1.1 ~]#

猜你在找的CentOS相关文章