首页 > 系统服务 > 详细

linux查看系统32位还是64位

时间:2017-03-29 16:21:01      阅读:236      评论:0      收藏: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

linux查看系统32位还是64位

原文:http://www.cnblogs.com/dylancao/p/6639735.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!