Home > Computer Tutorials > Computer Knowledge > 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?

PHPz
Release: 2024-03-01 19:34:23
forward
821 people have browsed it

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

CentOS is a Linux distribution that originated from RHEL and is compiled in accordance with the regulations of open source code. Moreover, it maintains functional compatibility with RHEL and is a free, open source operating system that users can use and modify without paying copyright fees. So does CentOS distinguish between 32-bit and 64-bit in Linux? Please see below for details.

CentOS distinguishes between 32-bit and 64-bit!

Main differences:

CentOS 32bit system is mainly released for PC;

CentOS 64bit system is mainly aimed at large-scale scientific computing;

64bit Linux system is mainly installed on 64bit hardware system;

32bit Linux system can be installed on 32bit hardware system, or it can be installed on 64bit hardware but the running effect is not good;

64bit addressing space is larger and 128G memory can be addressed and operated;

 The 32-bit addressing space is basically unusable in Oracle systems. Large memory support can be enabled through PAE.

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

 1. uname-a

If there is x86_64, it is 64-bit, if not, it is 32-bit

If followed by X686 or X86_64, the kernel is 64-bit, and if i686 or i386, the kernel is 32-bit.

 2. file/sbin/init

 [root@localhost ~]# file/sbin/init

 /sbin/init: ELF 32-bit LSB shared object,Intel 80386,version 1
(SYSV),dynamically linked(uses shared libs),for GNU/linux 2.6.18,stripped

 3. file/bin/ls

 [root@localhost ~]# file/bin/ls

 /bin/ls:ELF 32-bit LSB executable,Intel 80386,version 1 (SYSV),dynamically
linked (uses shared libs),for GNU/linux 2.6.18,stripped

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:mryunwei.com
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
Latest Issues
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template