查看linux Unix系统32位或64位

1.#uname -a如果有x86_64就是64位的,没有就是32位的

这是64位的 # uname -a Linux WORKS 2.6.9-11.ELsmp #1 SMP Fri May 20 18:25:30 EDT 2005 x86_64 x86_64 x86_64 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.# uname -mx86_643.# archx86_64

4.#file /bin/cat/bin/cat: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped

5.查看cpu是多少位的more /proc/cpuinfo

怎样查看 LINUX是32位还是64位$su - root#file /sbin/init/sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),

即是32位的 linux, 如是64位的, 显示的是 64-bit

你可能感兴趣的:(查看linux Unix系统32位或64位)