您的当前位置:首页 --> CentOS入门
centos 查看版本
浏览次数:1561 关键词 ( 版本  centos  )
有以下命令可以查看:   # lsb_release -a [html] view plaincopy
  1. [jifeng@jifeng01 hadoop]$ lsb_release -a  
  2. LSB Version:    :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch  
  3. Distributor ID: RedHatEnterpriseServer  
  4. Description:    Red Hat Enterprise Linux Server release 5.6 (Tikanga)  
  5. Release:        5.6  
  6. Codename:       Tikanga  
[html] view plaincopy
  1. [jifeng@jifeng02 ~]$ lsb_release -a  
  2. LSB Version:    :base-4.0-ia32:base-4.0-noarch:core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch  
  3. Distributor ID: CentOS  
  4. Description:    CentOS release 6.4 (Final)  
  5. Release:        6.4  
  6. Codename:       Final  
  这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版。   [html] view plaincopy
  1. [jifeng@jifeng01 hadoop]$  uname  
  2. Linux  
  3. [jifeng@jifeng01 hadoop]$  uname -r  
  4. 2.6.18-238.el5  
  5. [jifeng@jifeng01 hadoop]$  uname -i  
  6. x86_64  
  7. [jifeng@jifeng01 hadoop]$  uname -a  
  8. Linux jifeng01 2.6.18-238.el5 #1 SMP Sun Dec 19 14:22:44 EST 2010 x86_64 x86_64 x86_64 GNU/Linux  
  9. [jifeng@jifeng01 hadoop]$   
  以下二种方法适用于RedHat,CentOS cat /etc/redhat-release   [html] view plaincopy
  1. [jifeng@jifeng01 hadoop]$ cat /etc/redhat-release  
  2. Red Hat Enterprise Linux Server release 5.6 (Tikanga)  
[html] view plaincopy
  1. [jifeng@jifeng02 ~]$ cat /etc/redhat-release  
  2. CentOS release 6.4 (Final)  
  rpm -q redhat-release  [html] view plaincopy
  1. [jifeng@jifeng01 hadoop]$ rpm -q redhat-release   
  2. redhat-release-5Server-5.6.0.3  

下载次数:24
下载地址:点击下载
本资源为程序自动采集,如有侵权请联系我们移除 admin#80vps.com 来信请将#替换为@
下一条 centos系统中网络配置相关
上一条 CentOS7.0下高级硬盘管理RAID 1+0方案

拥有超过10年的业务管理经验。我们是IDC服务和解决方案方面的专家

有任何疑问请不要犹豫,立即点击联系我们