查看Centos版本信息的操作方法具体步骤

今天RAK将给大家详细讲解查看CentOS版本信息的命令。

(一) 查看已经安装的CentOS版本信息

1.cat /etc/issue 查看版本

查看Centos版本信息的操作方法具体步骤

cat  缩写concatenate  cat命令可以用来显示、合并文件。

 
CentOS release 6.6 (Final)

   
CentOS 发行版6.6 

   
etc  初期etc的英文名字缩写为etcetera ,后来大家更习惯称为 Editable Text Configuration。ETC为系统配置文件目录,该目录包含系统启动脚本、启动配置文件、用户登陆配置文件、网络配置文件、httpd 配置文件、IPSec 配置文件和其他文件等。

2.cat /etc/redhat-release 查看CentOS版本

查看Centos版本信息的操作方法具体步骤

3.cat /proc/version

查看Centos版本信息的操作方法具体步骤

proc 为process的缩写,里面存放与内核相关的文件。

   
显示结果:
   
Linux version 2.6.32-504.12.2.el6.x86_64(mockbuild@c6b9.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-11) (GCC) ) #1 SMP Wed Mar 11 22:03:14 UTC 2015  

 
我们可以看到该系统使用的是Linux 2.6.32 内核的64为操作系统。GCC 为GUN 编译器集合,采用4.4.5版本。

4.uname -a 显示如下

查看Centos版本信息的操作方法具体步骤

Linux 主机192-168-14-166

Linux 版本2.6.32-504.12.2.el6.x86_64 64位

5.uname -r

显示结果:2.6.32-504.12.2.el6.x86_64

分析结果:Linux 版本2.6.32-504.12.2.el6.x86_64 64位

(二)查看系统是32位或者64位的方法
1.getconf LONG_BIT or getconf WORD_BIT
 
输入:getconf LONG_BIT
 
返回结果:64
 
输入:getconf WORD_BIT
 
返回结果:32
 
分析:32位的系统中int类型和long类型一般都是4字节,64位的系统中int类型还是4字节的,但是long已变成了8字节inux系统中可用”getconf WORD_BIT”和”getconf        LONG_BIT”获得word和long的位数。64位系统中应该分别得到32和64。
 
所以该系统为64为Linux系统。

2.file /bin/ls
 
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped

   
可以看到 ELF 64-bit LSB 所以该系统为64位

此教程来自固定链接:http://www.rakbuluo.com/p47

原文链接:,转发请注明来源!

发表评论

  • 71 Responses to “查看Centos版本信息的操作方法具体步骤”
    • overseas pharmacy

      <a href="http://canadianpharmacyhopemeds.com/">most trusted canadian pharmacy</a>
      http://canadianpharmacyhopemeds.com/
      <a href=http://canadianpharmacyhopemeds.com/>highest rated canadian pharmacies</a>

      回复
    • reputable canadian pharmacy

      <a href="http://canadianpharmacyhopemeds.com/">canada online pharmacy</a>
      http://canadianpharmacyhopemeds.com/
      <a href=http://canadianpharmacyhopemeds.com/>canadian drug stores</a>

      回复
    • canadian pharmacy online

      <a href="http://canadianonlinepharmacykkr.com/">mexican pharmacies online</a>
      http://canadianonlinepharmacykkr.com/
      <a href=http://canadianonlinepharmacykkr.com/>canada drugs</a>

      回复
    • overseas online pharmacy

      <a href="http://canadianonlinepharmacykkr.com/">overseas online pharmacies</a>
      http://canadianonlinepharmacykkr.com/
      <a href=http://canadianonlinepharmacykkr.com/>canadian pharmacies mail order</a>

      回复
    • mexican border pharmacies shipping to usa

      <a href="http://canadianbestpharmacyonline.com/">legitimate online pharmacies</a>
      http://canadianbestpharmacyonline.com/
      <a href=http://canadianbestpharmacyonline.com/>canada drug</a>

      回复
    • online pharmacies of canada

      <a href="http://canadianbestpharmacyonline.com/">online canadian pharmacy</a>
      http://canadianbestpharmacyonline.com/
      <a href=http://canadianbestpharmacyonline.com/>overseas pharmacies shipping to usa</a>

      回复
    • Udrqyrh

      jackson county ga health department what is the right dosage of cialis
      <a href="https://withoutshort.com">viagra without doctor prescription</a> Lcdy54c
      https://withoutshort.com viagra

      回复
    • UDwene

      <a href=http://www.winviag.com>viagra</a> http://www.levitraye.com

      回复
    • Eraidssut

      would being low on electrolytes give you erectile dysfunction <a href=https://www.withoutbro.com>viagra without a doctor prescription</a> sildenafil citrate 20 mg side effects
      h2 blockers and erectile dysfunction: https://www.withoutbro.com buy viagra without seeing doctor

      回复
    • online pharmacies legitimate

      <a href="http://canadianpharmacyhub.com/">overseas online pharmacy</a>
      http://canadianpharmacyhub.com/
      <a href=http://canadianpharmacyhub.com/>reputable canadian online pharmacies</a>

      回复
    • ADwene

      <a href=http://www.winviag.com>viagra sans ordonnance</a> http://www.levitraye.com

      回复
    • aarp approved canadian online pharmacies

      <a href="http://canadianpharmacyhub.com/">safe online pharmacies</a>
      http://canadianpharmacyhub.com/
      <a href=http://canadianpharmacyhub.com/>reliable mexican pharmacies</a>

      回复
    • aarp recommended canadian pharmacies

      <a href="http://canadianpharmacyguru.com/">canadian drug stores</a>
      http://canadianpharmacyguru.com/
      <a href=http://canadianpharmacyguru.com/>safe canadian pharmacies online</a>

      回复
    • Oamburce

      Wonderful content. Kudos. <a href=https://www.kamagradr.com>kamagra gel</a> kamagra deutschland bewertung
      kamagra deutschland verboten: https://www.kamagradr.com kamagra oral jelly

      回复
    • legitimate online pharmacies

      <a href="http://canadianpharmacyguru.com/">canada drugs</a>
      http://canadianpharmacyguru.com/
      <a href=http://canadianpharmacyguru.com/>trust online pharmacy</a>

      回复
    • canada drugs

      <a href="http://canadianpharmacyfit.com/">safe canadian pharmacies online</a>
      http://canadianpharmacyfit.com/
      <a href=http://canadianpharmacyfit.com/>drugstore online</a>

      回复
    • highest rated canadian pharmacies

      <a href="http://canadianpharmacyfit.com/">best canadian pharcharmy online</a>
      http://canadianpharmacyfit.com/
      <a href=http://canadianpharmacyfit.com/>online canadian pharmacy</a>

      回复
    • best 10 online pharmacies

      <a href="http://canadianpharmacycenterhd.com/">canada pharmacy</a>
      http://canadianpharmacycenterhd.com/
      <a href=http://canadianpharmacycenterhd.com/>legitimate online pharmacies india</a>

      回复
    • certified canadian online pharmacies

      <a href="http://canadianpharmacyhub.com/">list of legitimate canadian pharmacies</a>
      http://canadianpharmacyhub.com/
      <a href=http://canadianpharmacyhub.com/>safe canadian internet pharmacies</a>

      回复
    • international pharmacies that ship to the usa

      <a href="http://canadianpharmacycenterhd.com/">best 10 online pharmacies</a>
      http://canadianpharmacycenterhd.com/
      <a href=http://canadianpharmacycenterhd.com/>best mexican online pharmacies</a>

      回复
    • best 10 online pharmacies

      <a href="http://canadianpharmacyguru.com/">canada drugs online reviews</a>
      http://canadianpharmacyguru.com/
      <a href=http://canadianpharmacyguru.com/>best canadian pharmacies</a>

      回复
    • best canadian pharmacies

      <a href="http://canadianpharmaciespreshd.com/">best 10 online pharmacies</a>
      http://canadianpharmaciespreshd.com/
      <a href=http://canadianpharmaciespreshd.com/>online pharmacies</a>

      回复
    • safe canadian internet pharmacies

      <a href="http://canadianpharmaciespreshd.com/">safe canadian internet pharmacies</a>
      http://canadianpharmaciespreshd.com/
      <a href=http://canadianpharmaciespreshd.com/>best 10 online canadian pharmacies</a>

      回复
    • overseas pharmacies shipping to usa

      <a href="http://canadianpharmacyfit.com/">best mexican online pharmacies</a>
      http://canadianpharmacyfit.com/
      <a href=http://canadianpharmacyfit.com/>canada pharmacies online prescriptions</a>

      回复
    • canadian online pharmacy

      <a href="http://canadianpharmacieshq.com/">canadian pharmaceuticals online reviews</a>
      http://canadianpharmacieshq.com/
      <a href=http://canadianpharmacieshq.com/>online pharmacies</a>

      回复
    • approved canadian online pharmacies

      <a href="http://canadianpharmacieshq.com/">best canadian pharcharmy online</a>
      http://canadianpharmacieshq.com/
      <a href=http://canadianpharmacieshq.com/>mexican border pharmacies</a>

      回复
    • trust online pharmacy

      <a href="http://canadianpharmacycenterhd.com/">mail order prescription drugs from canada</a>
      http://canadianpharmacycenterhd.com/
      <a href=http://canadianpharmacycenterhd.com/>legitimate online pharmacies</a>

      回复
    • canadian online pharmacy no prescription

      <a href="http://canadianpharmaciesdepot.com/">canadian trust pharmacy</a>
      http://canadianpharmaciesdepot.com/
      <a href=http://canadianpharmaciesdepot.com/>approved canadian online pharmacies</a>

      回复
    • overseas pharmacies

      <a href="http://canadianpharmaciespreshd.com/">legitimate canadian pharmacy online</a>
      http://canadianpharmaciespreshd.com/
      <a href=http://canadianpharmaciespreshd.com/>list of legitimate canadian pharmacies</a>

      回复
    • canadian internet pharmacy

      <a href="http://canadianpharmaciesdepot.com/">safe canadian internet pharmacies</a>
      http://canadianpharmaciesdepot.com/
      <a href=http://canadianpharmaciesdepot.com/>discount canadian drugs</a>

      回复
    • canada drugs online

      <a href="http://canadianfastpharmacy.com/">mexican pharmacies online cheap</a>
      http://canadianfastpharmacy.com/
      <a href=http://canadianfastpharmacy.com/>mexican pharmacies online</a>

      回复
    • canadian mail order pharmacies

      <a href="http://canadianpharmacieshq.com/">canadian pharmacy</a>
      http://canadianpharmacieshq.com/
      <a href=http://canadianpharmacieshq.com/>certified canadian online pharmacies</a>

      回复
    • canada online pharmacy

      <a href="http://canadianfastpharmacy.com/">canada drug pharmacy</a>
      http://canadianfastpharmacy.com/
      <a href=http://canadianfastpharmacy.com/>international pharmacy</a>

      回复
    • canadian pharmaceuticals online reviews

      <a href="http://canadianpharmaciesdepot.com/">online pharmacies canada</a>
      http://canadianpharmaciesdepot.com/
      <a href=http://canadianpharmaciesdepot.com/>canadian trust pharmacy</a>

      回复
    • safe online pharmacies

      <a href="http://canadianpharmacynethd.com/">canadian pharmacies without an rx</a>
      http://canadianpharmacynethd.com/
      <a href=http://canadianpharmacynethd.com/>canadian pharmacies online</a>

      回复
    • Oamburce

      You actually reported this very well. <a href=https://www.kamagramama.com>kamagra oral jelly</a> kamagra funktioniert
      waar kun je kamagra kopen: https://www.kamagramama.com buy kamagra

      回复
    • canada pharmaceuticals online

      <a href="http://canadianpharmacynethd.com/">reliable mexican pharmacies</a>
      http://canadianpharmacynethd.com/
      <a href=http://canadianpharmacynethd.com/>mexican pharmacy online</a>

      回复
    • canadian internet pharmacy

      <a href="http://canadianfastpharmacy.com/">canadian pharcharmy online</a>
      http://canadianfastpharmacy.com/
      <a href=http://canadianfastpharmacy.com/>mexican online pharmacies</a>

      回复
    • top 10 online pharmacies

      <a href="http://canadiannextpharmacy.com/">online pharmacies of canada</a>
      http://canadiannextpharmacy.com/
      <a href=http://canadiannextpharmacy.com/>canadian trust pharmacy</a>

      回复
    • canada pharmaceuticals online

      <a href="http://canadianpharmacynethd.com/">online pharmacy reviews</a>
      http://canadianpharmacynethd.com/
      <a href=http://canadianpharmacynethd.com/>aarp approved canadian online pharmacies</a>

      回复
    • approved canadian online pharmacies

      <a href="http://canadiannextpharmacy.com/">canadian pharmacies mail order</a>
      http://canadiannextpharmacy.com/
      <a href=http://canadiannextpharmacy.com/>top 10 online pharmacies</a>

      回复
    • canadian pharmacy reviews

      <a href="http://canadianpharmacieselite.com/">best online pharmacies</a>
      http://canadianpharmacieselite.com/
      <a href=http://canadianpharmacieselite.com/>legitimate canadian mail order pharmacies</a>

      回复
    • canada online pharmacy

      <a href="http://canadiannextpharmacy.com/">pharmacy drugstore online</a>
      http://canadiannextpharmacy.com/
      <a href=http://canadiannextpharmacy.com/>canada pharmacies online prescriptions</a>

      回复
    • my canadian pharmacy

      <a href="http://canadianpharmacieselite.com/">pharmacy drugstore online</a>
      http://canadianpharmacieselite.com/
      <a href=http://canadianpharmacieselite.com/>international pharmacy</a>

      回复
    • best canadian online pharmacies

      <a href="http://canadianonlinepharmacynote.com/">best canadian online pharmacies</a>
      http://canadianonlinepharmacynote.com/
      <a href=http://canadianonlinepharmacynote.com/>online pharmacies legitimate</a>

      回复
    • reputable mexican pharmacies online

      <a href="http://canadianonlinepharmacynote.com/">canada pharmaceuticals online</a>
      http://canadianonlinepharmacynote.com/
      <a href=http://canadianonlinepharmacynote.com/>reputable online pharmacy</a>

      回复
    • canadian online pharmacy reviews

      <a href="http://canadianonlinepharmacynote.com/">online pharmacies</a>
      http://canadianonlinepharmacynote.com/
      <a href=http://canadianonlinepharmacynote.com/>reliable canadian pharmacy</a>

      回复
    • mexican online pharmacy

      <a href="http://canadianpharmacyhopemeds.com/">online canadian pharmacy</a>
      http://canadianpharmacyhopemeds.com/
      <a href=http://canadianpharmacyhopemeds.com/>mail order prescription drugs from canada</a>

      回复
    • online canadian pharmacy

      <a href="http://canadianpharmacyhopemeds.com/">safe canadian internet pharmacies</a>
      http://canadianpharmacyhopemeds.com/
      <a href=http://canadianpharmacyhopemeds.com/>best canadian pharmacies</a>

      回复
    • overseas pharmacies online

      <a href="http://canadianpharmacyhopemeds.com/">canada pharmacy</a>
      http://canadianpharmacyhopemeds.com/
      <a href=http://canadianpharmacyhopemeds.com/>pharmacy online</a>

      回复
    • canada drug pharmacy

      <a href="http://canadianonlinepharmacykkr.com/">mexican online pharmacy</a>
      http://canadianonlinepharmacykkr.com/
      <a href=http://canadianonlinepharmacykkr.com/>approved canadian online pharmacies</a>

      回复
    • canadian pharmacy reviews

      <a href="http://canadianonlinepharmacykkr.com/">mexican pharmacies online</a>
      http://canadianonlinepharmacykkr.com/
      <a href=http://canadianonlinepharmacykkr.com/>top rated canadian pharmacies online</a>

      回复
    • canadian drugs

      <a href="http://canadianonlinepharmacykkr.com/">canadian pharmacies shipping to usa</a>
      http://canadianonlinepharmacykkr.com/
      <a href=http://canadianonlinepharmacykkr.com/>canadian pharmaceuticals online reviews</a>

      回复
    • canadian pharmaceuticals online safe

      <a href="http://canadianbestpharmacyonline.com/">legitimate canadian pharmacy online</a>
      http://canadianbestpharmacyonline.com/
      <a href=http://canadianbestpharmacyonline.com/>canada drugs online</a>

      回复
    • trust online pharmacy

      <a href="http://canadianbestpharmacyonline.com/">mexican pharmacies online</a>
      http://canadianbestpharmacyonline.com/
      <a href=http://canadianbestpharmacyonline.com/>canadian online pharmacy reviews</a>

      回复
    • overseas online pharmacies

      <a href="http://canadianpharmacyhub.com/">best canadian pharcharmy online</a>
      http://canadianpharmacyhub.com/
      <a href=http://canadianpharmacyhub.com/>international pharmacies that ship to the usa</a>

      回复
    • AExcuppy

      asthma definition - <a href=https://www.withoutbro.com/>retail price viagra 100mg</a> Aaodjwy
      much does daily cialis cost
      viagra company name: <a href="https://www.withoutbro.com/">viagra without doctor prescription</a>

      回复
    • canada pharmacy

      <a href="http://canadianpharmacyguru.com/">canada drug</a>
      http://canadianpharmacyguru.com/
      <a href=http://canadianpharmacyguru.com/>best online canadian pharmacy</a>

      回复
    • mexican pharmacies online

      <a href="http://canadianpharmacyguru.com/">reliable canadian pharmacy</a>
      http://canadianpharmacyguru.com/
      <a href=http://canadianpharmacyguru.com/>international pharmacy</a>

      回复
    • canada drugs

      <a href="http://canadianpharmacyfit.com/">best canadian pharcharmy online</a>
      http://canadianpharmacyfit.com/
      <a href=http://canadianpharmacyfit.com/>online pharmacy canada</a>

      回复
    • reliable mexican pharmacies

      <a href="http://canadianpharmacycenterhd.com/">best canadian pharcharmy online</a>
      http://canadianpharmacycenterhd.com/
      <a href=http://canadianpharmacycenterhd.com/>canadian pharmacies without an rx</a>

      回复
    • overseas pharmacies online

      <a href="http://canadianpharmacieshq.com/">trust online pharmacies</a>
      http://canadianpharmacieshq.com/
      <a href=http://canadianpharmacieshq.com/>certified canadian online pharmacies</a>

      回复
    • canadian pharmacies shipping to usa

      <a href="http://canadianpharmaciespreshd.com/">online canadian pharmacy</a>
      http://canadianpharmaciespreshd.com/
      <a href=http://canadianpharmaciespreshd.com/>canadian online pharmacies</a>

      回复
    • canadian pharmacy online

      <a href="http://canadianpharmaciesdepot.com/">canada pharmacy</a>
      http://canadianpharmaciesdepot.com/
      <a href=http://canadianpharmaciesdepot.com/>top rated canadian pharmacies online</a>

      回复
    • canada drugs online

      <a href="http://canadianpharmacieshq.com/">canada drug</a>
      http://canadianpharmacieshq.com/
      <a href=http://canadianpharmacieshq.com/>best online canadian pharmacy</a>

      回复
    • mexican pharmacies online cheap

      <a href="http://canadianpharmaciespreshd.com/">canada pharmacies online</a>
      http://canadianpharmaciespreshd.com/
      <a href=http://canadianpharmaciespreshd.com/>canadian trust pharmacy</a>

      回复
    • canada pharmacy

      <a href="http://canadianfastpharmacy.com/">canada pharmacy</a>
      http://canadianfastpharmacy.com/
      <a href=http://canadianfastpharmacy.com/>aarp approved canadian online pharmacies</a>

      回复
    • trust pharmacy canada

      <a href="http://canadianpharmaciesdepot.com/">legitimate canadian mail order pharmacies</a>
      http://canadianpharmaciesdepot.com/
      <a href=http://canadianpharmaciesdepot.com/>trust pharmacy canada</a>

      回复
    • safe canadian pharmacies online

      <a href="http://canadianpharmacieshq.com/">pharmacy drugstore online</a>
      http://canadianpharmacieshq.com/
      <a href=http://canadianpharmacieshq.com/>best canadian pharcharmy online</a>

      回复
    • overseas pharmacies online

      <a href="http://canadianpharmacieshq.com/">safe online pharmacies</a>
      http://canadianpharmacieshq.com/
      <a href=http://canadianpharmacieshq.com/>best canadian pharcharmy online</a>

      回复
    • best mexican online pharmacies

      <a href="http://canadianpharmacynethd.com/">most trusted canadian pharmacy</a>
      http://canadianpharmacynethd.com/
      <a href=http://canadianpharmacynethd.com/>canadian pharmacy online</a>

      回复