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

How to check whether Linux is 32-bit or 64-bit

王林
Release: 2019-12-25 13:44:49
Original
3585 people have browsed it

How to check whether Linux is 32-bit or 64-bit

Method 1:

getconf LONG_BIT
Copy after login

32 is a 32-bit system, 64 is a 64-bit system

How to check whether Linux is 32-bit or 64-bit

Method 2: Use file /sbin/init or file /bin/lscommand

Free video tutorial recommendation: linux video tutorial

32-bit is a 32-bit system, 64-bit is a 64-bit system

How to check whether Linux is 32-bit or 64-bit

Method 3:

uname -a
Copy after login

i686 Indicates a 32-bit system, x86_64 indicates a 64-bit system

How to check whether Linux is 32-bit or 64-bit

Note: The screenshot is a 32-bit system of centos6.4

How to check whether Linux is 32-bit or 64-bit

Recommended related articles and tutorials: linux tutorial

The above is the detailed content of How to check whether Linux is 32-bit or 64-bit. 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