CentOS 7 system to view the system version and machine digits

This article is reproduced from: [CentOS7 view system version, view machine digits] (http://www.cnblogs.com/woshimrf/p/5883037.html)

Identification standard#

First of all, it must be clear what kind of logo is 32-bit and what is 64-bit.

PC server X86 series
I386--I686 are all 32 bits
x86_64 is 64-bit

View digit command#

There are really not too many commands. In order to prevent selective obstacles, the first method is unanimously chosen, and the latter is only a supplement.
method 1:

[ root@bogon ~]# uname -a
Linux bogon 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu May 1211:03:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Method 2: Display system program information

[ root@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]=aa7ff68f13de25936a098016243ce57c3c982e06, stripped

Method 3:

[ root@bogon ~]# cat /proc/version
Linux version 3.10.0-327.18.2.el7.x86_64([email protected])(gcc version 4.8.320140911(Red Hat 4.8.3-9)(GCC)) #1 SMP Thu May 1211:03:55 UTC 2016

Method 4:

(In a 32-bit system, the int type and long type are generally 4 bytes, and the int type in a 64-bit system is still 4 bytes, but long has become an 8-byte inux system. Available "getconf WORD_BIT" and
" getconf LONG_BIT" gets the number of bits of word and long. In a 64-bit system, you should get 32 and 64 respectively.)

[ root@bogon ~]# getconf LONG_BIT
64

View system version#

method 1:

[ root@bogon ~]#  lsb_release -a
LSB Version::core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.2.1511(Core) 
Release:7.2.1511
Codename:   Core

Method 2:

[ root@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"

Method 3:

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

Method 4:

[ root@bogon ~]# rpm -q centos-release
centos-release-7-2.1511.el7.centos.2.10.x86_64

View kernel version#

method 1:

[ root@bogon ~]# cat /proc/version
Linux version 3.10.0-327.18.2.el7.x86_64([email protected])(gcc version 4.8.320140911(Red Hat 4.8.3-9)(GCC)) #1 SMP Thu May 1211:03:55 UTC 2016

Method 2:

[ root@bogon ~]# uname -a
Linux bogon 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu May 1211:03:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

Recommended Posts

CentOS 7 system to view the system version and machine digits
Correspondence between CentOS (RHEL) kernel version and system version
Centos7 modify the system language to simplified Chinese
View CentOS version information
View CentOS version information
The virtual machine centos and the host ping each other
The difference between CentOS and Ubuntu in Linux system
The difference between CentOS 7 and CentOS 6
How to install Centos operating system on VMware virtual machine
Xshell and Xftp fail to connect to the virtual machine Ubuntu
The difference between CentOS and Ubuntu
Use CentOS 7.5 to uninstall the built-in jdk and install your own JDK1.8
CentOS 7.X system installation and optimization
How to view the python module
CentOS 7 system installation and configuration graphic tutorial
centos7 cannot connect to the external network
The difference and connection between Centos and Redhat
Linux kernel compilation and CentOS system installation
Centos7.6 operating system installation and optimization record
Install mysql8.0.13 version under Linux CentOS7 system
Centos install the latest version of cmake
The relationship between Open3D version and Ubuntu
How to modify the hostname on CentOS 8
CentOS7 system yum way to install MySQL5.7
Analysis on the method of CentOS8 virtual machine to access Windows10 host folder
How to change the CentOS server time to Beijing time
Installation and configuration of JDK in CentOS 7 system
VMware Fusion install CentOS7 and configure the network
How to install and configure Elasticsearch on CentOS 7
Summarize the knowledge points of Centos7 system reinforcement
CentOS 6.5 system installation and configuration graphic tutorial (detailed graphic)
How to install and configure VNC on CentOS 8
The easiest way to install Chrome on CentOS 6
Download of VM virtual machine and install centos7
How to open the ubuntu system in win10
How to install and use Composer on CentOS 8
How to install and configure Redis on CentOS 8
Use Ubuntu and windows system in virtual machine
How to install Node.js and npm on CentOS 8
Do you know the CentOS system startup process?
How to install jdk1.8.0_151 and mysql5.6.38 on centos7.2.1511
How to install and configure phpMyAdmin on CentOS 6
How to install and use Curl on CentOS 8
How to install and configure Owncloud on CentOS 8
How to modify the CentOS server time to Beijing time
CentOS 7 install KVM and create a virtual machine
Centos7.2 compile and install way to build phpMyAdmin
How to install Linux CentOS 7.7 system through VMware
How to install and uninstall tomcat on centos
How to install and configure Redmine on CentOS 8
How to add and delete users on CentOS 8
[Video] Teach you how to install the latest Linux version of QQ under Centos 8
Centos7 to install the correct posture of Tomcat8 and set the boot self-start practice notes