教程集 www.jiaochengji.com
教程集 >  操作系统  >  centos/Redat  >  正文 查看Linux(suse和RedHat)系统与内核版本的方法

查看Linux(suse和RedHat)系统与内核版本的方法

发布时间:2014-08-15   编辑:jiaochengji.com
本文以Suse Linux为例,介绍查看系统与内核版本的方法,供大家学习参考。

本文以Suse Linux为例,介绍查看系统与内核版本的方法,供大家学习参考。
主要可以从以下配置文件或命令查看系统或内核的版本。

rtpserver01:/proc/scsi/qla2xxx # cat /proc/version
Linux version 2.6.16.60-0.21-smp (geeko@buildhost) (gcc version 4.1.2 20070115 (SUSE Linux)) #1 SMP Tue May 6 12:41:02 UTC 2008

rtpserver01:/proc/scsi/qla2xxx # more /etc/SuSE-release
SUSE Linux Enterprise Server 10 (x86_64)
VERSION = 10
PATCHLEVEL = 2

###对应的RedHat可以查看etc/redhat-release文件###
rtpserver01:/proc/scsi/qla2xxx #  lsb_release -a
LSB Version:    core-2.0-noarch:core-3.0-noarch:core-2.0-x86_64:core-3.0-x86_64:desktop-3.1-amd64:desktop-3.1-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch
Distributor ID: SUSE LINUX
Description:    SUSE Linux Enterprise Server 10 (x86_64)
Release:        10
Codename:       n/a

rtpserver01:/proc/scsi/qla2xxx # uname -a
Linux rtpserver01 2.6.16.60-0.21-smp #1 SMP Tue May 6 12:41:02 UTC 2008 x86_64 x86_64 x86_64 GNU/Linux

rtpserver01:/proc/scsi/qla2xxx # uname -r
2.6.16.60-0.21-smp
rtpserver01:/proc/scsi/qla2xxx #

您可能感兴趣的文章:

[关闭]
~ ~