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

查看LINUX系统版本信息

时间:2018-07-03 15:12:12      阅读:198      评论:0      收藏:0      [点我收藏+]

标签:build   product   https   code   dha   rhel   version   port   roo   

方法1:

     [root@localhost ~]# cat /proc/version 

Linux version 3.10.0-327.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu Nov 19 22:10:57 UTC 2015

     [root@localhost ~]# cat /etc/redhat-release 

CentOS Linux release 7.2.1511 (Core)
[root@localhost ~]#

方法2:

[root@localhost ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

[root@localhost ~]#

查看LINUX系统版本信息

标签:build   product   https   code   dha   rhel   version   port   roo   

原文地址:http://blog.51cto.com/guojin/2135399

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