檢視Linux系統版本資訊

2021-08-26 02:14:51 字數 1118 閱讀 9917

一、檢視linux系統版本的命令(3種方法)

1、cat /etc/issue,此命令也適用於所有的linux發行版。

[root@s-centos home]# cat /etc/issue

centos release 6.5 (final)

kernel \r on an \m

2、cat /etc/redhat-release,這種方法只適合redhat系的linux:

[root@s-centos home]# cat /etc/redhat-release

centos release 6.5 (final)

3、lsb_release -a,即可列出所有版本資訊:

[root@s-centos ~]# 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.5 (final)

release: 6.5

codename: final

二、檢視linux核心版本命令(兩種方法):

1、cat /proc/version

[root@s-centos home]# cat /proc/version

linux version 2.6.32-431.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (red hat 4.4.7-4) (gcc) ) #1 smp fri nov 22 03:15:09 utc 2013

2、uname -a

[root@s-centos home]# uname -a

linux s-centos 2.6.32-431.el6.x86_64 #1 smp fri nov 22 03:15:09 utc 2013 x86_64 x86_64 x86_64 gnu/linux

linux檢視系統版本資訊

1.etc issue 和 etc redhat release都是系統安裝時預設的發行版本資訊,通常安裝好系統後檔案內容不會發生變化。看你的貼圖該linux安裝的發行版是rhel6.1。2.lsb release a fsg free standards group 組織開發的lsb linux ...

linux 檢視系統版本資訊

第一種方法 lsb release a lsb version core 4.0 ia32 core 4.0 noarch graphics 4.0 ia32 graphics 4.0 noarch printing 4.0 ia32 printing 4.0 noarch distributor ...

Linux系統檢視版本資訊

1.輸入 uname a 可顯示電腦以及作業系統資訊。root centos uname a linux centos 2.6.32 358.el6.x86 64 1 smp fri feb 22 00 31 26 utc 2013 x86 64 x86 64 x86 64 gnu linux ro...