读书人

查看linux系统属于32位 仍是64位

发布时间: 2012-06-26 10:04:13 作者: rapoo

查看linux系统属于32位 还是64位?
第一种方法:

[root@pingan2 ~]# uname  -aLinux pingan2.server 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
显示的信息里面有x86_64,则属于64位的操作系统。而是32位系统显示的信息如下
[root@localhost ~]# uname -aLinux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT 2010 i686 i686 i386 GNU/Linux


第二种方法:
[root@pingan2 ~]# echo $HOSTTYPEx86_64

显示x86_64属于64位的操作系统。直接显示i686属于32位的操作系统

第三种方法:
[root@monitor bash]# getconf LONG_BIT32[root@monitor bash]#


读书人网 >UNIXLINUX

热点推荐