如何用命令查看Centos7版本信息 Centos7版本信息查看 查看Linux系统是32位还是64位
Centos7查看系统版本方法汇总
方法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"
方法3:
安装宝塔面板,也可以直接查看
查看Linux系统32位or 64位 查看Linux系统是32位还是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
本文由 vps网友提供 刊发,转载请注明出处