Chinaunix首页 | 论坛 | 博客
  • 博客访问: 156847
  • 博文数量: 31
  • 博客积分: 2025
  • 博客等级: 大尉
  • 技术积分: 380
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-09 15:21
文章分类

全部博文(31)

文章存档

2011年(1)

2010年(1)

2009年(29)

我的朋友

分类: LINUX

2009-11-25 10:18:30

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 -m
x86_64
3.# arch
x86_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
阅读(9888) | 评论(3) | 转发(1) |
给主人留下些什么吧!~~

rain_fish2011-03-31 09:18:55

getconf LONG_BIT

chinaunix网友2009-11-29 20:14:02

$ file /bin/bash /bin/bash: ELF 32-bit LSB executable, MIPS, MIPS-I version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, with unknown capability 0xf41 = 0x756e6700, stripped

chinaunix网友2009-11-29 20:12:52

~$ uname -m mips64 $ uname -a Linux fuloong2f 2.6.29-fuloong2f #2 PREEMPT Sun Jul 12 14:58:43 CST 2009 mips64 GNU/Linux $ cat /proc/cpuinfo system type : lemote-fuloong processor : 0 cpu model : ICT Loongson-2 V0.3 FPU V0.1 BogoMIPS : 530.43 cache size : 512kB wait instruction : yes microsecond timers : yes tlb_entries : 64 extra interrupt vector : no hardware watchpoint : yes, count: 0, address/irw mask: [] ASEs implemented : shadow register sets : 1 core : 0 VCED ex