file /sbin/init

/sbin/init:

 ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked

 (uses shared libs), for GNU/Linux 2.6.18, stripped

#显示 64-bit 则为64位系统

file /sbin/init

/sbin/init:

 ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux

 2.2.5, dynamically linked (uses shared libs), stripped

#显示为32 bit 则为32位系统