Home > Article > Operation and Maintenance > 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!