查看linux机器是32位还是64位的方法

查看linux机器是32位还是64位的方法:

getconf LONG_BIT
在32位和64位机器上运行如下命令,结果如下:
[b@002 ~]$ getconf LONG_BIT
64

[root@pmx4 /]# getconf LONG_BIT
32

原文地址:https://www.cnblogs.com/chenjianhong/p/4145012.html