1.
[root@linuxzgf ~]#getconf LONG_BIT [root@linuxzgf ~]#getconf WORD_BIT
(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 8 bytes. In Linux systems, you can use "getconf WORD_BIT" and "getconf LONG_BIT" to obtain the number of word and long digits. In 64-bit systems, you should get 32 and 64 respectively.)
(Recommended tutorial: centos usage tutorial)
2.
[root@linuxzgf ~]#uname -a
If there is x86_64, it is 64-bit, if not, it is 32-bit; the following If it is X686 or A 64-bit system will have two directories, /lib64 and /lib, while a 32-bit system will have only /lib.
Four,
[root@linuxzgf ~]#file /sbin/init /sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
Five,
[root@linuxzgf ~]#file /bin/cat /bin/cat: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
6.
[root@linuxzgf ~]#uname -m x86_64 3.# arch x86_64 i686
linux video 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!