免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 13801 | 回复: 20
打印 上一主题 下一主题

请教:怎么在Linux下查看CPU是32位还是64位的? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-10-26 22:44 |只看该作者 |倒序浏览
如题,我的Linux是SUSE 9的。

论坛徽章:
0
2 [报告]
发表于 2005-10-27 09:17 |只看该作者

请教:怎么在Linux下查看CPU是32位还是64位的?

cat /proc/cpuinfo

论坛徽章:
0
3 [报告]
发表于 2005-10-27 09:19 |只看该作者

请教:怎么在Linux下查看CPU是32位还是64位的?

[root@.....]# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 8
model name      : Pentium III (Coppermine)
stepping        : 10
cpu MHz         : 1002.293
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse
bogomips        : 1998.84

在那里看

论坛徽章:
0
4 [报告]
发表于 2005-10-27 09:40 |只看该作者

请教:怎么在Linux下查看CPU是32位还是64位的?

CPU在买的时候就知道了吧?

论坛徽章:
0
5 [报告]
发表于 2005-10-27 10:00 |只看该作者

请教:怎么在Linux下查看CPU是32位还是64位的?

model name      : Pentium III (Coppermine)

可能是64位的吗?

论坛徽章:
0
6 [报告]
发表于 2005-10-27 10:15 |只看该作者

请教:怎么在Linux下查看CPU是32位还是64位的?

zcat /proc/config.gz |grep 64BIT

论坛徽章:
0
7 [报告]
发表于 2005-10-27 10:24 |只看该作者

请教:怎么在Linux下查看CPU是32位还是64位的?

[quote]原帖由 "bleem1998"]zcat /proc/config.gz |grep 64BIT[/quote 发表:


这个要编译时打开config.gz支持才行呢
一般只要装了内核的开发文件,cat /lib/modules/`uname -r`/build/.config就行

论坛徽章:
0
8 [报告]
发表于 2005-10-27 10:41 |只看该作者

请教:怎么在Linux下查看CPU是32位还是64位的?

原帖由 "hongzjx" 发表:

可能是64位的吗?


32 bit的有
Intel
Pentium, Pentium2, Pentium3, Pentium4
Celeron, Celeron2, Celeron3, P4 Celeron, CeleronD

AMD
K5, K6, K6-2, K6-3, K7(Athlon), AthlonXP
Duron, Sempron

64 bit有
Intel
PentiumD
CeleronD 3xx

AMD
Athlon64, Operton
SempronII

有錯請指教

论坛徽章:
0
9 [报告]
发表于 2005-10-27 11:22 |只看该作者

请教:怎么在Linux下查看CPU是32位还是64位的?

我们好愚蠢阿
printf(sizeof(int))不就可以了么?!!
瓦哈哈哈哈哈和

论坛徽章:
0
10 [报告]
发表于 2005-10-27 11:32 |只看该作者

请教:怎么在Linux下查看CPU是32位还是64位的?

偶的是4 应该是"64" 位吧!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP