• 欢迎访问水熊虫网站,这里是我个人的工作博客,内容大多是遇到问题完善后,会在这里进行总结归纳内容! QQ群
  • 网站导航中的友情链接专栏上线,更新的都是自己这三年整理的一些东西,感兴趣可以看看!
  • 你所浪费的今天,是昨天死去的人奢望的明天。你所厌恶的现在,是未来的你回不去的曾经!

Linux下查看系统版本号信息的方法

云主机问题 WaterBear 7年前 (2017-08-18) 716次浏览 已收录 扫描二维码

一、查看Linux内核版本命令(两种方法):

1、cat /proc/version

[root@localhost ~]# cat /proc/version
<a href="http://waterbear.pw/tag/linux" title="查看更多关于Linux的文章" target="_blank">Linux</a> 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
<a href="http://waterbear.pw/tag/linux" title="查看更多关于Linux的文章" target="_blank">Linux</a> 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/<a href="http://waterbear.pw/tag/linux" title="查看更多关于Linux的文章" target="_blank">Linux</a>

二、查看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: <a href="http://waterbear.pw/tag/centos" title="查看更多关于CentOS的文章" target="_blank">CentOS</a>
Description: <a href="http://waterbear.pw/tag/centos" title="查看更多关于CentOS的文章" target="_blank">CentOS</a> 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
<a href="http://waterbear.pw/tag/centos" title="查看更多关于CentOS的文章" target="_blank">CentOS</a> release 5.5 (Final)

3、cat /etc/issue,此命令也适用于所有的Linux发行版。

[root@localhost ~]# cat /etc/issue
<a href="http://waterbear.pw/tag/centos" title="查看更多关于CentOS的文章" target="_blank">CentOS</a> release 5.5 (Final)
Kernel \r on an \m

WaterBear , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:Linux下查看系统版本号信息的方法
喜欢 (0)
[[email protected]]
分享 (0)