首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

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

2012-06-26 
查看linux系统属于32位 还是64位?第一种方法:[root@pingan2 ~]# uname-aLinux pingan2.server 2.6.18-194.

查看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]#


热点排行