CentOS 7 System View System Version and machine count

Source: Internet
Author: User

CentOS 7 System View System Version and machine count
Preface

Because linux is not often used, software is installed whenever it is used. When installing the software, you must select the installation package platform, which is 32-bit or 64-bit. At this time, I suddenly found that I don't know how to check it, So Baidu. Although it is easy for Baidu to come out, it still does not have its own notes to look comfortable. Therefore, record it.

Identification criteria

First, you need to know what kind of identifier is 32-bit and what kind of identifier is 64-bit.

PC server X86 Series

Both I386--I68632-bit

X86_64 is64-bit

View bits

Too many commands are required. In order to prevent selection obstacles, the first method is the same, and the subsequent method is only used as a supplement.
Method 1:

[root@bogon ~]# uname -aLinux bogon 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu May 12 11: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/versionLinux version 3.10.0-327.18.2.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu May 12 11:03:55 UTC 2016

Method 4:

(In 32-bit systems, the int and long types are generally 4 bytes. In 64-bit systems, the int type is 4 bytes, however, long has been changed to "getconf WORD_BIT" and
"Getconf LONG_BIT" gets the number of digits of word and long. In a 64-bit system, the values are 32 and 64 respectively .)

[root@bogon ~]# getconf LONG_BIT64
View System Version

Method 1:

[root@bogon ~]#  lsb_release -aLSB 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-noarchDistributor ID: CentOSDescription:    CentOS Linux release 7.2.1511 (Core) Release:    7.2.1511Codename:   Core

Method 2:

[root@bogon ~]# cat /etc/os-releaseNAME="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-releaseCentOS Linux release 7.2.1511 (Core) 

Method 4:

[root@bogon ~]# rpm -q centos-releasecentos-release-7-2.1511.el7.centos.2.10.x86_64
View the kernel version

Method 1:

[root@bogon ~]# cat /proc/versionLinux version 3.10.0-327.18.2.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu May 12 11:03:55 UTC 2016

Method 2:

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.