作業系統

當前位置 /首頁/計算機/作業系統/列表

Linux檢視系統版本的方法

很多朋友都不清楚如何在Linux下檢視系統版本。下面小編為大家整理了Linux檢視系統版本的方法,希望能幫到大家!

Linux檢視系統版本的方法

 一、檢視Linux系統發行版本

命令1:lsb_release -a

該命令適用於所有Linux系統,會顯示出完整的版本資訊,包括Linux系統的名稱,如Debian、Ubuntu、CentOS等,和對應的版本號,以及該版本的代號,例如在Debian 8中將會顯示代號jessie。

$ lsb_release -a

No LSB modules are available.

Distributor ID: Debian

Description: Debian GNU/Linux 8.0 (jessie)

Release: 8.0

Codename: jessie

命令2: cat /etc/issue

該命令適用於所有Linux系統,顯示的.版本資訊較為簡略,只有系統名稱和對應版本號。

$ cat /etc/issue

Debian GNU/Linux 8 1

命令3: cat /etc/redhat-release

該命令僅適用於Redhat系列的Linux系統,顯示的版本資訊也較為簡略。

$ cat /etc/redhat-release

CentOS release 6.0 (Final)

  二、檢視Linux核心版本

命令1: uname -a

$ uname -a

Linux CodeBelief 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8ul (2015-04-24) x86_64 GNU/Linux

命令2: cat /proc/version

$ cat /proc/version

Linux version 3.16.0-4-amd64 ) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt9-3~deb8ul (2.15-04-24)

TAG標籤:LINUX 檢視 系統 #