1. [root@bainuo ~]# file /sbin/init //redhat
/sbin/init: ELF 32-bit LSB executable, Intel80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses sharedlibs), for GNU/Linux 2.6.9, stripped
[root@bainuo ~]#即是32位的 linux, 如是64位的, 显示的是 64-bit
2.file /bin/ls //centos
3.getconf LONG_BIT //centos