Home  >  Article  >  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

王林
王林Original
2019-12-25 13:44:493537browse

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

Method 1:

getconf LONG_BIT

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

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!

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