Home  >  Article  >  Operation and Maintenance  >  How to check whether the system is 32-bit or 64-bit in Linux

How to check whether the system is 32-bit or 64-bit in Linux

王林
王林Original
2020-03-11 16:53:293440browse

How to check whether the system is 32-bit or 64-bit in Linux

Method 1: getconf LONG_BIT View

[root@DB-Server ~]# getconf LONG_BIT

How to check whether the system is 32-bit or 64-bit in Linux

(Recommended tutorial: linux tutorial)

Method 2: uname command to view

As shown in the following example, x86_64 represents a 64-bit system, i686 i386 represents a 32-bit system. i686 is just a subset of i386. The supported CPUs start from Pentium 2 (686). Previous models are not supported.

[root@DB-Server ~]# uname -a
Linux DB-Server 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:43 EDT 2010 i686 i686 i386 GNU/Linux
[root@DB-Server ~]# uname -m

How to check whether the system is 32-bit or 64-bit in Linux

Related video tutorial recommendations: linux video Tutorial

The above is the detailed content of How to check whether the system is 32-bit or 64-bit in Linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn