天天看點

SUSE作業系統,如何檢視作業系統版本?

背景描述:

  今天需要統計作業系統版本,我在其中一台主機上執行cat /etc/redhat-release發現沒有這個,應該知道不是redhat系統,然後想,怎麼查來着,忘了,找了下,再此記錄下。

### 檢視作業系統及版本資訊:

1.cat /etc/issue

txprd@xxx806:~> cat /etc/issue

Welcome to SUSE Linux Enterprise Server 11 SP2  (x86_64) - Kernel \r (\l).      

2.lsb_release -a

txprd@xxxx806:~> lsb_release -a
LSB Version:    core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64:desktop-4.0-amd64:desktop-4.0-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch
Distributor ID: SUSE LINUX
Description:    SUSE Linux Enterprise Server 11 (x86_64)
Release:        11
Codename:       n/a      

3.如果是redhat、centos,執行cat /etc/redhat-release

[root@abc-xxx-14 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.6 (Santiago)      

文檔建立時間:2019年6月4日13:59:56

特别提醒:

如果你想知道,如何輕松學習技術、快速賺取現金、鈔票的秘訣,

讓你的技術實作超高的收益,

讓你的技術獲得的收益是身邊朋友、周圍同僚的3倍、5倍。

請立即添加微信:13240133388

繼續閱讀