centos 查看版本
生活随笔
收集整理的這篇文章主要介紹了
centos 查看版本
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
有以下命令可以查看:
# lsb_release -a [jifeng@jifeng01 hadoop]$ lsb_release -a 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 Distributor ID: RedHatEnterpriseServer Description: Red Hat Enterprise Linux Server release 5.6 (Tikanga) Release: 5.6 Codename: Tikanga [jifeng@jifeng02 ~]$ lsb_release -a 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 Distributor ID: CentOS Description: CentOS release 6.4 (Final) Release: 6.4 Codename: Final
這個命令適用于所有的linux,包括Redhat、SuSE、Debian等發(fā)行版。
[jifeng@jifeng01 hadoop]$ uname Linux [jifeng@jifeng01 hadoop]$ uname -r 2.6.18-238.el5 [jifeng@jifeng01 hadoop]$ uname -i x86_64 [jifeng@jifeng01 hadoop]$ uname -a 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 [jifeng@jifeng01 hadoop]$
以下二種方法適用于RedHat,CentOS cat /etc/redhat-release [jifeng@jifeng01 hadoop]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.6 (Tikanga) [jifeng@jifeng02 ~]$ cat /etc/redhat-release CentOS release 6.4 (Final)
rpm -q redhat-release? [jifeng@jifeng01 hadoop]$ rpm -q redhat-release redhat-release-5Server-5.6.0.3
# lsb_release -a [jifeng@jifeng01 hadoop]$ lsb_release -a 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 Distributor ID: RedHatEnterpriseServer Description: Red Hat Enterprise Linux Server release 5.6 (Tikanga) Release: 5.6 Codename: Tikanga [jifeng@jifeng02 ~]$ lsb_release -a 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 Distributor ID: CentOS Description: CentOS release 6.4 (Final) Release: 6.4 Codename: Final
這個命令適用于所有的linux,包括Redhat、SuSE、Debian等發(fā)行版。
[jifeng@jifeng01 hadoop]$ uname Linux [jifeng@jifeng01 hadoop]$ uname -r 2.6.18-238.el5 [jifeng@jifeng01 hadoop]$ uname -i x86_64 [jifeng@jifeng01 hadoop]$ uname -a 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 [jifeng@jifeng01 hadoop]$
以下二種方法適用于RedHat,CentOS cat /etc/redhat-release [jifeng@jifeng01 hadoop]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.6 (Tikanga) [jifeng@jifeng02 ~]$ cat /etc/redhat-release CentOS release 6.4 (Final)
rpm -q redhat-release? [jifeng@jifeng01 hadoop]$ rpm -q redhat-release redhat-release-5Server-5.6.0.3
總結(jié)
以上是生活随笔為你收集整理的centos 查看版本的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: mahout安装测试
- 下一篇: Redhat 停止sendmail的方法