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

王林
Release: 2020-05-18 11:27:18
Original
3660 people have browsed it

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

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!

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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!