码迷,mamicode.com
首页 > 其他好文 > 详细

centos7版本信息查看

时间:2018-05-07 10:17:50      阅读:7242      评论:0      收藏:0      [点我收藏+]

标签:版本

##查看系统版本
方法1
[gc@bogon ~]$ cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
方法2
[gc@bogon ~]$ lsb_release -a
-bash: lsb_release: command not found
[gc@bogon ~]$ 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"
##查看Linux系统32位or 64位
[root@moban ~]# uname –m
x86_64 //64位系统
i386/i686 //32位系统
##查看Linux系统的内核版本
[root@moban ~]# uname –r
2.6.32-504.e16.x86_64
##查看Linux系统全部信息
[root@moban ~]# uname -a
Linux moban 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
##显示系统程序信息
[gc@bogon ~]$ file /bin/ls
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=3d705971a4c4544545cb78fd890d27bf792af6d4, stripped

centos7版本信息查看

标签:版本

原文地址:http://blog.51cto.com/wdf1002/2113403

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