如何查看linux版本

如何查看linux版本

一。 查看linux内核版本号的三种命令:

1. cat /proc/version   结果如下:

[[email protected] ~]# cat /proc/version
Linux version 3.10.0-123.el7.x86_64 ([email protected]) (gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) ) #1 SMP Mon Jun 30 12:09:22 UTC 2014

    2. uname -a    结果如下:

[[email protected] ~]# cat /proc/version
Linux version 3.10.0-123.el7.x86_64 ([email protected]) (gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) ) #1 SMP Mon Jun 30 12:09:22 UTC 2014

    3. uname -r  结果如下:

[[email protected] ~]# uname -r
3.10.0-123.el7.x86_64

二。 查看linux系统版本号

    1.  lsb_release -a  结果如下


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

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

注: 如果提示找不到上述命令,可以安装,安装命令如下:

     yum install redhat-lsb -y    

2. cat /etc/issue


[[email protected] h5hq]$ cat /etc/issue
Red Hat Enterprise Linux AS release 4 (Nahant Update 8)
Kernel \r on an \m

  3.  cat /etc/redhat-release  


[[email protected] ~]# cat /etc/redhat-release
CentOS Linux release 7.0.1406 (Core) 

4.    rpm -q centos-release

[[email protected] ~]# rpm -q centos-release
centos-release-7-0.1406.el7.centos.2.3.x86_64


 




时间: 2024-08-12 23:34:10

如何查看linux版本的相关文章

Ubuntu下查看linux版本,内核版本,系统位数,gcc版本

1. 查看linux版本  [email protected]:~$cat /etc/issueUbuntu 11.04 \n \l 2. 查看内核版本1) [email protected]:~$ cat /proc/versionLinux version 2.6.38-13-generic ([email protected]) (gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) ) #57-Ubuntu SMP Mon Mar 5 18:1

【转】 如何查看linux版本 如何查看LINUX是多少位

原文网址:http://blog.csdn.net/hongweigg/article/details/7192471 一.如何得知自己正在使用的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-

查看Linux版本信息

显示操作系统相关信息 # uname -a 查看Linux内核版本 # cat /proc/version 查看Linux版本 # lsb_release -a

如何查看linux版本 如何查看LINUX是多少位

一.如何得知自己正在使用的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

【转】如何查看linux版本 如何查看LINUX是多少位

原文网址:http://sopace.blog.51cto.com/1227753/670526 如何得知自己正在使用的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 Mo

查看linux版本和内核

查看linux内核版本号的三种命令: 第一种:登录linux,在终端输入 cat /proc/version     运行效果如下图: 第二种:登录linux,在终端输入 uname -a   即列出linux的内核版本号 运行效果如下图: 第三种:在Linux终端输入 unmae -a 即可查看linux的内核版本号 运行效果如下图 查看linux版本信息: 第一种:登录到linux服务器执行 lsb_release-a 命令,即可查看所有版本信息,如下图: 第二种:登录到linux执行 ca

用lsb_release -a 查看linux版本

1.要通过yum 安装上这个命令的软件包 yum -y install redhat-lsb 2.lsb_release -a 查看linux版本信息

linux小结(3):查看linux版本

如何查看Linux系统使用的版本信息呢? 下面这篇文章收集.整理了一些常见的查看Linux系统版本的方法.由于手头只有Oracle Linux.Centos Linux.Redhat Linux三个版本Linux,所以像Debian.Ubuntu之类的Linux系统,下面方法在这些版本都没测试过. 1:more /etc/issue 命令查看 1.1 Oracle Linux   [[email protected] ~]# more /etc/issue Oracle Linux Server

查看linux版本的几种方法

(1)lsb_release 命令查看,FSG(Free Standards Group)组织开发的LSB (Linux Standard Base)标准的一个命令,用来查看linux兼容性的发行版信息 [[email protected] oracle]# lsb_release -h FSG lsb_release v2.0 prints certain LSB (Linux Standard Base) and Distribution information. Usage: lsb_re