Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> 關於 Linux

Linux 系統版本與核心版本查看指令大全(適用 RedHat、Debian、SUSE 等)

編輯:關於 Linux

Linux 發行版眾多,快速確認當前版本與核心資訊是運維基本功。本文彙整多種查看方法,涵蓋主流發行版。

1. 查看核心版本

cat /proc/version
uname -a
uname -r          # 僅顯示核心釋出版本

2. 查看發行版版本

lsb_release -a    # 通用,適用所有發行版
cat /etc/issue      # 顯示發行版描述
cat /etc/redhat-release  # RedHat 系列專用
rpm -q redhat-release    # 查詢 RPM 包版本

輸出範例

# lsb_release -a
LSB Version: core-3.0-amd64:...
Distributor ID: RedHatEnterpriseAS
Description: Red Hat Enterprise Linux AS release 4 (Nahant Update 2)
Release: 4
Codename: NahantUpdate2

根據所用發行版選擇適當指令,快速獲取版本資訊。

Copyright © Windows教程網 All Rights Reserved