码迷,mamicode.com
首页 > 系统相关 > 详细

察看linux 发行版

时间:2015-04-09 10:18:56      阅读:141      评论:0      收藏:0      [点我收藏+]

标签:

好像没有太通用的方法。

看一下/etc/redhat-release。  redhat 系列(包括centos) 会有如下内容

[root@localhost ~]# cat /etc/redhat-release 
CentOS Linux release 7.0.1406 (Core) 

 

看一下/etc/issue。 ubuntu内容如下

root@git-server:~# cat /etc/issue
Ubuntu 14.04 LTS \n \l

 

察看linux 发行版

标签:

原文地址:http://www.cnblogs.com/kramer/p/4408677.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!