[root@localhost]#: 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)
如果看到 32-bit 就说明是32位
或者
[root@localhost ~]# file /bin/ls
/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), stripped
如果看到 32-bit 就说明是32位
[root@localhost ~]# getconf -a |grep LONG*
LONG_BIT 32
ULONG_MAX 4294967295
如果看到 32就说明是32位
转载于:https://blog.51cto.com/kongdq/967326