查看linux系统和内核版本

1. 查看内核版本命令:

1) [[email protected] ~]# cat /proc/version

  Linux version 2.6.9-22.ELsmp ([email protected]) (gcc
version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Mon Sep 19 18:00:54 EDT 2005

2) [[email protected] ~]# uname -a

 Linux q1test01 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:00:54 EDT 2005 x86_64
x86_64 x86_64 GNU/Linux

3) [[email protected] ~]# uname -r

 2.6.9-22.ELsmp

2.查看linux的版本主要有三种方法:

1) 登录到服务器执行 lsb_release -a ,即可列出所有版本信息,例如:

[[email protected] ~]# lsb_release -a
LSB Version: 1.3
Distributor ID:
RedHatEnterpriseAS
Description: Red Hat Enterprise Linux AS release 4 (Nahant
Update 1)
Release: 4
Codename: NahantUpdate1
[[email protected] ~]#

这个命令适用于所有的linux,包括Redhat、SuSE、Debian等发行版。

2) 登录到linux执行cat /etc/redhat-release ,例如如下:
[[email protected] ~]# cat
/etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant Update
1)
[[email protected] ~]#

这种方式下可以直接看到具体的版本号,比如 AS4 Update 1

3)登录到linux执行rpm -q redhat-release ,例如如下

[[email protected] ~]# rpm -q
redhat-release
redhat-release-4AS-2.4
[[email protected] ~]#

这种方式下可看到一个所谓的release号,比如上边的例子是2.4
这个release号和实际的版本之间存在一定的对应关系,如下:

redhat-release-3AS-1 -> Redhat Enterprise Linux AS
3
redhat-release-3AS-7.4 -> Redhat Enterprise Linux AS 3 Update
4
redhat-release-4AS-2 -> Redhat Enterprise Linux AS
4
redhat-release-4AS-2.4 -> Redhat Enterprise Linux AS 4 Update
1
redhat-release-4AS-3 -> Redhat Enterprise Linux AS 4 Update
2
redhat-release-4AS-4.1 -> Redhat Enterprise Linux AS 4 Update
3
redhat-release-4AS-5.5 -> Redhat Enterprise Linux AS 4 Update 4

注意:第(2)(3)两种方法只对Redhat Linux有效

查看linux系统和内核版本,布布扣,bubuko.com

时间: 2024-08-02 07:00:24

查看linux系统和内核版本的相关文章

查看linux机器配置&内核版本

[[email protected] bin]# uname  -a   Linux hadoop1 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 [[email protected] bin]#  cat /proc/version Linux version 2.6.32-431.el6.x86_64 ([email protected].bsys.dev.ce

查看Linux系统版本和内核信息

Linux 查看Linux系统版本信息 1. 查看内核版本 1) 方法一:登录到linux执行cat /proc/version [[email protected]_32bit_ip12 ~]$ cat /proc/version  Linux version 2.6.18-194.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Fri Apr 2 14:58:35 EDT 2010 

查看Linux系统版本信息

一.查看Linux内核版本命令(两种方法): 1.cat /proc/version [[email protected]CentOS home]# cat /proc/versionLinux 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 [

查看linux系统版本命令 (转)

查看linux系统版本命令 分类: Linux 知识小结2011-10-10 15:26 240162人阅读 评论(9) 收藏 举报 linuxredhatdebianx86susesun 一.查看内核版本命令: 1) [[email protected]_SYS ~]# cat /proc/versionLinux version 2.6.18-238.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-50))

【转载】查看Linux系统版本

本文转自:http://www.linuxidc.com/Linux/2016-05/131749.htm 一.查看Linux内核版本命令(两种方法): 1.cat /proc/version [[email protected]CentOS home]# cat /proc/versionLinux version 2.6.32-431.el6.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (G

【LInux】查看Linux系统版本信息

一.查看Linux内核版本命令(两种方法): 1.cat /proc/version [[email protected]CentOS home]# cat /proc/versionLinux 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 [

查看linux系统版本信息(Oracle Linux、Centos Linux、Redhat Linux、Debian、Ubuntu)

一.查看Linux系统版本的命令(3种方法) 1.cat /etc/issue,此命令也适用于所有的Linux发行版. [[email protected] home]# cat /etc/issue CentOS release 6.5 (Final) Kernel \r on an \m 2.cat /etc/redhat-release,这种方法只适合Redhat系的Linux: [[email protected] home]# cat /etc/redhat-release CentO

查看Linux系统版本信息的几种方法

一.查看Linux内核版本命令(两种方法): 1.cat /proc/version 2.uname -a 二.查看Linux系统版本的命令(3种方法): 1.lsb_release -a,即可列出所有版本信息: 这个命令适用于所有的Linux发行版,包括RedHat.SUSE.Debian…等发行版. 2.cat /etc/redhat-release,这种方法只适合Redhat系的Linux: [[email protected] home]# cat /etc/redhat-release

【linux】查看Linux系统版本信息的几种方法

一.查看Linux内核版本命令(两种方法): 1.cat /proc/version 2.uname -a 二.查看Linux系统版本的命令(3种方法): 1.lsb_release -a,即可列出所有版本信息: 这个命令适用于所有的Linux发行版,包括RedHat.SUSE.Debian…等发行版. 2.cat /etc/redhat-release,这种方法只适合Redhat系的Linux: [[email protected] home]# cat /etc/redhat-release