校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁 > 知識庫 > 查看Linux系統版本信息的方法小結

查看Linux系統版本信息的方法小結

熱門標簽:常熟外呼系統 文山外呼營銷系統 地圖上標注點位的圖標 江蘇小型外呼系統軟件 中山防封卡電銷卡辦理 拉薩銷售外呼系統軟件 電銷語音機器人哪個好 電話機器人服務器部署 百度地圖標注未成功
如何查看Linux系統使用的版本信息呢? 下面這篇文章收集、整理了一些常見的查看Linux系統版本的方法。由于手頭只有Oracle Linux、Centos Linux、Redhat Linux三個版本Linux,所以像Debian、Ubuntu之類的Linux系統,下面方法在這些版本都沒測試過。

1:more /etc/issue 命令查看

1.1 Oracle Linux


復制代碼
代碼如下:

[root@DB-Server ~]# more /etc/issueOracle Linux Server release 5.7Kernel \r on an \m


1.2 Centos Linux
 

復制代碼
代碼如下:

[root@Centos2 ~]# more /etc/issueCentOS release 6.4 (Final)Kernel \r on an \m
 

1.3 RedHat Linux
 

復制代碼
代碼如下:

[root@getlnx05 ~]# more /etc/issueRed Hat Enterprise Linux Server release 5.7 (Tikanga)Kernel \r on an \m
 

2: lsb_release -a 命令查看 

2.1 Oracle Linux


復制代碼
代碼如下:

[root@DB-Server ~]# 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: EnterpriseEnterpriseServer
Description: Enterprise Linux Enterprise Linux Server release 5.7 (Carthage)
Release: 5.7
Codename: Carthage

2.2 Centos Linux

復制代碼
代碼如下:

[root@Centos2 ~]# lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.4 (Final)
Release: 6.4
Codename: Final

2.3 RedHat Linux

復制代碼
代碼如下:

[root@getlnx05 ~]# 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.7 (Tikanga)
Release: 5.7
Codename: Tikanga

3:cat /etc/redhat-release 命令查看

這個命令應該只有部分Linux可以查看,不是所有版本Linux都可以使用該命令

3.1 Oracle Linux

復制代碼
代碼如下:

[root@DB-Server ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.7 (Tikanga)

[root@DB-Server etc]# cat /etc/*release
Enterprise Linux Enterprise Linux Server release 5.7 (Carthage)
Oracle Linux Server release 5.7
Red Hat Enterprise Linux Server release 5.7 (Tikanga)
[root@DB-Server etc]# ls /etc/*lease
/etc/enterprise-release /etc/oracle-release /etc/redhat-release
[root@DB-Server etc]#

3.2 Centos Linux

復制代碼
代碼如下:

[root@Centos2 ~]# cat /etc/redhat-release
CentOS release 6.4 (Final)

[root@Centos2 ~]# cat /etc/*release
CentOS release 6.4 (Final)
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
CentOS release 6.4 (Final)
CentOS release 6.4 (Final)
[root@Centos2 ~]# ls /etc/*release
/etc/centos-release /etc/lsb-release /etc/redhat-release /etc/system-release
[root@Centos2 ~]#

3.3 RedHat Linux

復制代碼
代碼如下:

[root@getlnx05 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.7 (Tikanga)

[root@getlnx05 ~]# cat /etc/*release
Red Hat Enterprise Linux Server release 5.7 (Tikanga)
[root@getlnx05 ~]# ls /etc/*release
/etc/redhat-release
[root@getlnx05 ~]#

4 rpm -q redhat-release命令查看,只適用于Redhat Linux

復制代碼
代碼如下:

[root@getlnx05 ~]# rpm -q redhat-release
redhat-release-5Server-5.7.0.3

標簽:鶴壁 黔南 景德鎮 天門 海北 欽州 威海 河南

巨人網絡通訊聲明:本文標題《查看Linux系統版本信息的方法小結》,本文關鍵詞  查看,Linux,系統,版本,信息,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《查看Linux系統版本信息的方法小結》相關的同類信息!
  • 本頁收集關于查看Linux系統版本信息的方法小結的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 兴宁市| 潢川县| 武陟县| 庐江县| 保靖县| 邵阳县| 临猗县| 梁平县| 潢川县| 城市| 建水县| 宽甸| 中卫市| 永宁县| 延长县| 肃宁县| 盖州市| 金昌市| 石棉县| 苏尼特左旗| 金溪县| 太和县| 鸡西市| 苍山县| 兰溪市| 新龙县| 古蔺县| 德钦县| 玉山县| 渑池县| 洛浦县| 清涧县| 五家渠市| 正安县| 镇安县| 西青区| 桐柏县| 阳城县| 黄大仙区| 六安市| 龙江县|