How to see if the CentOS system is 32-bit or 64-bit?
32-bit system:
[root @localhost ~]# file/sbin/ Init/sbin/init:elf 32 -bit LSB shared object, Intel 80386 , version 1 (SYSV), dynamically linked (Uses shared Libs), Span class= "Hljs-keyword" >for gnu/linux 2.6 . Stripped[root @localhost ~]# file/bin/ls/bin/ls:elf 32 -bit LSB executable, Intel 80386 , version 1 (SYSV), dynamically linked (Uses shared Libs), Span class= "Hljs-keyword" >for gnu/linux 2.6 . Stripped
64-bit system:
[Root@localhost]# file/sbin/init/sbin/init:elf --bit LSBsharedObject, x86- -,version 1(SYSV), dynamically linked (usessharedLIBS), forGnu/linux2.6. stripped[root@localhost]# file/bin/ls/bin/ls:elf --bit LSB executable, x86- -,version 1(SYSV), dynamically linked (usessharedLIBS), forGnu/linux2.6. stripped[root@localhost]# Uname-alinux Localhost.localdomain2.6.32-431.EL6.X86_64 #1SMP Fri Nov A 03: the:09 UTC -x86_64 x86_64 x86_64 Gnu/linux
How to see if the CentOS system is 32-bit or 64-bit?