Home >Operation and Maintenance >CentOS >How to check whether the centos system version is 32-bit or 64-bit

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

王林
王林Original
2020-05-18 11:27:183901browse

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

You can use the [getconf LONG_BIT] command and the [getconf WORD_BIT] command to view it.

[root@linuxzgf ~]#getconf LONG_BIT
[root@linuxzgf ~]#getconf WORD_BIT

Interpretation:

In 32-bit systems, the int type and long type are generally 4 bytes. In 64-bit systems, the int type is still 4 bytes, but long has become In the 8-byte Linux system, "getconf WORD_BIT" and "getconf LONG_BIT" can be used to obtain the number of digits of word and long. You should get 32 ​​and 64 respectively on a 64-bit system.

Recommended tutorial: centos tutorial

The above is the detailed content of How to check whether the centos system version 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