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

王林
Release: 2020-03-11 16:54:28
Original
3447 people have browsed it

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template