1. 程式人生 > >linux檢視作業系統版本的命令

linux檢視作業系統版本的命令

1.1 命令lsb_release -a

lsb_release提供特定的LSB (Linux Standard Base)和釋出版本相關資訊。

CentOS中執行lsb_release -a的結果如下:

[[email protected] ~]# lsb_release -a  
LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.2.1511 (Core) 
Release:    7.2.1511
Codename:   Core