国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 系統(tǒng) > Linux > 正文

查看Linux版本信息

2024-06-28 13:21:42
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友
查看linux版本信息 2015-03-05 15:14 by 瀟湘隱者, ... 閱讀, ... 評(píng)論, 收藏, 編輯

如何查看Linux系統(tǒng)使用的版本信息呢? 下面這篇文章收集、整理了一些常見(jiàn)的查看Linux系統(tǒng)版本的方法。由于手頭只有Oracle Linux、Centos Linux、Redhat Linux三個(gè)版本Linux,所以像Debian、Ubuntu之類的Linux系統(tǒng),下面方法在這些版本都沒(méi)測(cè)試過(guò)。

1:more /etc/issue 命令查看

1.1 Oracle Linux

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

1.2 Centos Linux

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

1.3 RedHat Linux

[root@getlnx05 ~]# more /etc/issue
Red 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

clip_image001

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

clip_image002

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

clip_image003

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

這個(gè)命令應(yīng)該只有部分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 ~]# 

clip_image004

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 ~]#

clip_image005

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

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

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 富蕴县| 康平县| 焦作市| 绥德县| 霍州市| 佛山市| 鲁甸县| 定远县| 襄汾县| 霍邱县| 垫江县| 崇文区| 乌拉特中旗| 两当县| 朝阳县| 蛟河市| 玉树县| 疏勒县| 宜宾县| 和硕县| 海南省| 建阳市| 星座| 安多县| 巫山县| 治多县| 多伦县| 文山县| 天峻县| 杭锦后旗| 通许县| 石家庄市| 同江市| 潞西市| 静乐县| 蕲春县| 柳河县| 田林县| 武鸣县| 临沂市| 玛多县|