CentOS 7 viewing system version and number of digits

Identification standard

First of all, we need to know what kind of identity is 32-bit and 64 bit.

PC server X86 series

I386--I686 are all 32 bits

X86 ʄ is 64 bit

Order is not too much, in order to prevent the obstacles of selectivity, choose the first method unanimously, the latter is only for supplement.
Method 1:

[root@localhost bob]# uname -a
Linux localhost.localdomain 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Method 2: display system program information

[root@localhost bob]# 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]=c5ad78cfc1de12b9bb6829207cececb990b3e987, stripped

Method 3:

[root@localhost bob]# cat /proc/version
Linux version 3.10.0-862.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Fri Apr 20 16:44:24 UTC 2018

 

View system version

Method 1:

[root@localhost bob]# 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"

 

Method 3:

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

Method 4:

[root@localhost bob]# rpm -q centos-release
centos-release-7-5.1804.el7.centos.x86_64

View kernel version

Method 1:

[root@localhost bob]# cat /proc/version
Linux version 3.10.0-862.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Fri Apr 20 16:44:24 UTC 2018

Method 2:

[root@localhost bob]# uname -a
Linux localhost.localdomain 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

 

Tags: CentOS Linux Red Hat SHA1

Posted on Wed, 08 Jan 2020 13:46:56 -0500 by mediamind