Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9168907
  • 博文数量: 1669
  • 博客积分: 16831
  • 博客等级: 上将
  • 技术积分: 12594
  • 用 户 组: 普通用户
  • 注册时间: 2011-02-25 07:23
个人简介

柔中带刚,刚中带柔,淫荡中富含柔和,刚猛中荡漾风骚,无坚不摧,无孔不入!

文章分类

全部博文(1669)

文章存档

2023年(4)

2022年(1)

2021年(10)

2020年(24)

2019年(4)

2018年(19)

2017年(66)

2016年(60)

2015年(49)

2014年(201)

2013年(221)

2012年(638)

2011年(372)

分类:

2011-11-30 17:41:58

Linux 下查看系统是32位 还是64 位的方法
分类: Linux 513人阅读 评论(0) 举报

 

 

1. 从系统查看

1.1 uname -a 命令

[root@qs-dmm-rh2 ~]# uname -a

Linux qs-dmm-rh2 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:43 EDT 2010 i686 i686 i386 GNU/Linux

 

[root@qs-xezf-db2 ~]# uname -a

Linux qs-xezf-db2 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

 

 

1.2 file /bin/ls 命令

[root@qs-dmm-rh2 ~]# file /bin/ls

/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped

 

[root@qs-xezf-db2 ~]# file /bin/ls

/bin/ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped

 

 

1.3 getconf LONG_BIT 命令

[root@qs-dmm-rh2 ~]# getconf LONG_BIT

32

 

[root@qs-xezf-db2 ~]# getconf LONG_BIT

64

 

1.4 arch命令

[root@qs-dmm-rh2 ~]# arch

i686

 

[root@qs-xezf-db2 ~]# arch

x86_64

 

 

 

 

2. CPU查看

[root@qs-dmm-rh2 ~]# cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l

0

 

[root@qs-xezf-db2 ~]# cat /proc/cpuinfo | grep flags | grep ' lm ' | wc -l

8

 

结果大于0, 说明支持64bit计算. lmlong mode, 支持lm则是64bit

 

 

有关CPU 的信息,查看我的Blog

       Linux CPU 信息查看

       http://blog.csdn.net/tianlesoftware/archive/2010/10/27/5970500.aspx

 

阅读(598) | 评论(0) | 转发(0) |
0

上一篇:API

下一篇:Linux chmod 命令 详解

给主人留下些什么吧!~~