标签:
1.#uname -a
如果有x86_64就是64位的,没有就是32位的
# uname -a
Linux desktop 2.6.35-23-generic #37-Ubuntu SMP Fri Nov 5 19:17:11 UTC 2010 i686 GNU/Linux
这是32位的
#uname -a
Linux backup 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686 i686 i386 GNU/Linux
注意:Ixxx的全是32位的,有X86—64的全是64位
2.#file /sbin/init
/sbin/init: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped
3.查看cpu是多少位的
more /proc/cpuinfo
4.$su - root
#file /sbin/init
/sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
即是32位的 linux, 如是64位的, 显示的是 64-bit
标签:
原文地址:http://www.cnblogs.com/longshiyVip/p/4782538.html