檢視系統版本號 Redhat

2021-09-01 16:55:51 字數 1306 閱讀 5197

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

1、cat /proc/version

[root@localhost ~]# cat /proc/version

linux version 2.6.18-194.8.1.el5.centos.plus ([email protected]) (gcc version 4.1.2 20080704 (red hat 4.1.2-48)) #1 smp wed jul 7 11:50:45 edt 2010

2、uname -a

[root@localhost ~]# uname -a

linux localhost.localdomain 2.6.18-194.8.1.el5.centos.plus #1 smp wed jul 7 11:50:45 edt 2010 i686 i686 i386 gnu/linux

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

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

[root@localhost ~]# lsb_release -a

lsb version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch

distributor id: centos

description: centos release 5.5 (final)

release: 5.5

codename: final

這個命令適用於所有的linux發行版,包括redhat、suse、debian…等發行版。

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

[root@localhost ~]# cat /etc/redhat-release

centos release 5.5 (final)

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

[root@localhost ~]# cat /etc/issue

centos release 5.5 (final)

kernel r on an m

如何檢視windows系統版本號

2014年02月08日 windows 7 共 471字 字型大小 小 中 大 閱讀 2,492 次 某些時候我們需要檢視當前所使用windows作業系統的版本號,microsoft酋長 就來與大家分享一下檢視當前作業系統版本號的三種方法,就以windows8.1系統為例。方法 一 使用命令slmg...

檢視linux系統版本號命令

一。檢視核心版本號命令 1 root sor sys cat proc version linux version 2.6.18 238.el5 mockbuild x86 012.build.bos.redhat.com gcc version 4.1.2 20080704 red hat 4.1...

Ubuntu檢視linux系統版本號

檢視ubuntu版本 輸入命令 cat proc version 顯示如下 linux version 5.0.0 13 generic buildd lcy01 amd64 020 linux核心版本號 gcc version 8.3.0 gcc編譯器版本號 ubuntu 8.3.0 6ubunt...